Created
December 23, 2018 03:18
-
-
Save ridingintraffic/f8535f22964541e7636e6a35638f2d00 to your computer and use it in GitHub Desktop.
git updater
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
function traffic-update() | |
{ | |
currentDir=$(pwd) | |
cd ~/git/github/<someuser>/traffic/ | |
git pull | |
git add --all | |
git co -a -m "autoupdate script" | |
git push origin `git rev-parse --abbrev-ref HEAD` # push to origin/master | |
cd $currentDir | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment