Skip to content

Instantly share code, notes, and snippets.

@aowongster
Created February 9, 2017 19:45
Show Gist options
  • Save aowongster/ad594139e0cc682603a7099257b88ddb to your computer and use it in GitHub Desktop.
Save aowongster/ad594139e0cc682603a7099257b88ddb to your computer and use it in GitHub Desktop.
git post receive hook for updating index on push
#!/bin/bash
unset GIT_DIR
echo "checking out force latest"
pwd
cd .. && git checkout -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment