Posted By

trey on 07/07/08


Tagged

git


Versions (?)

Push to Remote Repository on Every Git Commit


 / Published in: Bash
 

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

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.

  1. echo 'git push' > .git/hooks/post-commit

Report this snippet  

You need to login to post a comment.