Skip to content

Instantly share code, notes, and snippets.

@skremiec
Created January 12, 2010 08:22
Show Gist options
  • Save skremiec/275006 to your computer and use it in GitHub Desktop.
Save skremiec/275006 to your computer and use it in GitHub Desktop.
[Git] Hook updating working tree after push
#!/bin/bash
# .git/hooks/post-receive - refreshing working-tree after pushing to this repository
cd ..
env -i git reset --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment