Created
March 18, 2017 09:59
-
-
Save jmbrunskill/866725e6210e73dc36ffdcd2bd66ed3e to your computer and use it in GitHub Desktop.
Automatically Check in and push Changes to GIT - assumes already on the right branch and keys are setup to allow push
This file contains hidden or 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/bash | |
cd $GIT_REPO | |
if [[ `git status --porcelain` ]] | |
then | |
# changes | |
git add . | |
git commit -m "Auto Git Commit for `date`" | |
git push origin master | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment