/git-autopush

Very simple bash script to add "git push" as the post commit hook in a Git repo.

Primary LanguageShell

git-autopush
============

Very simple bash script to add an auto-push post commit hook in the current Git
repo.  After running this script, all committed changes to the repo will be
immediately pushed to the configured remote/branch.


Accepts a remote repo name as parameter if you would like to push to another
repo.

OPTIONS:
 -o Overwrite any existing post commit hook
 -r [repo] Remote repo to push to
 -a Pushes all branches