Return to Snippet

Revision: 7117
at July 7, 2008 16:46 by trey


Initial Code
echo 'git push' > .git/hooks/post-commit

Initial URL
http://errtheblog.com/posts/89-huba-huba

Initial Description
Do this from inside a Git repository, and it will do a 'git push' every time you do a 'git commit'.

This defeats a bit of the purpose of having a distributed SCM, but it's good for certain situations.

Initial Title
Push to Remote Repository on Every Git Commit

Initial Tags
git

Initial Language
Bash