Skip to content

Instantly share code, notes, and snippets.

@danalmeida
Created March 6, 2014 16:02
Show Gist options
  • Save danalmeida/9392939 to your computer and use it in GitHub Desktop.
Save danalmeida/9392939 to your computer and use it in GitHub Desktop.
Git hook — upload files to directory after push
#!/bin/sh
GIT_WORK_TREE=/path/to/host/example.com/ git checkout -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment