Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
git updater
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
You can’t perform that action at this time.