Skip to content

Instantly share code, notes, and snippets.

@jmbrunskill
Created March 18, 2017 09:59
Show Gist options
  • Save jmbrunskill/866725e6210e73dc36ffdcd2bd66ed3e to your computer and use it in GitHub Desktop.
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
#!/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