Skip to content

Instantly share code, notes, and snippets.

@kausikram
Created March 30, 2015 07:12
Show Gist options
  • Save kausikram/0673716edac5e841a4da to your computer and use it in GitHub Desktop.
Save kausikram/0673716edac5e841a4da to your computer and use it in GitHub Desktop.
Git Post Receive Hook Recipe
#!/bin/sh
git --work-tree=<work_tree_full_path> --git-dir=<repo_full_path> checkout -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment