Skip to content

Instantly share code, notes, and snippets.

@ratazzi
Created May 5, 2011 14:45
Show Gist options
  • Save ratazzi/957164 to your computer and use it in GitHub Desktop.
Save ratazzi/957164 to your computer and use it in GitHub Desktop.
post-receive
#!/bin/bash
#
echo -n '-----> Deploying ...'
cd ..
env -i git reset --hard -q
echo -e ' \033[01;32mDone.\033[00m'
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment