Skip to content

Instantly share code, notes, and snippets.

@richardbporter
Created October 15, 2014 16:12
Show Gist options
  • Save richardbporter/485753078e91dcf871f6 to your computer and use it in GitHub Desktop.
Save richardbporter/485753078e91dcf871f6 to your computer and use it in GitHub Desktop.
git post-receive checkout
cd /path/to/work/tree
git --git-dir=/path/to/git/repo --work-tree=/path/to/work/tree checkout -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment