Created
December 21, 2017 21:40
-
-
Save cossio/1d15d9779726f1cd1fb1b16708502e60 to your computer and use it in GitHub Desktop.
git post-commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git push origin master |
Automatic push changes to a remote after commit. Create a file .git/hooks/post-commit
containing this code. And add execution permissions to it, chmod +x post-commit
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/7925850/how-to-automatically-push-after-committing-in-git