Skip to content

Instantly share code, notes, and snippets.

@duaneleem
Last active August 9, 2016 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duaneleem/4b513413b8d8dd571b74a6de4defeda1 to your computer and use it in GitHub Desktop.
Save duaneleem/4b513413b8d8dd571b74a6de4defeda1 to your computer and use it in GitHub Desktop.
Helper bash functions to automate git workflow. On Mac OS X type "git-all -m "Updated app." and it will git add/commit/push. You can update gh-pages using "git-pages" from bash and will update your gh-pages based on master repo.
# GitHub Automation
gitAll() {
git add .
git commit -m "$1"
git push
}
alias git-all=gitAll
gitPages() {
git checkout gh-pages
git rebase master
git push origin gh-pages
git checkout master
}
alias git-pages=gitPages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment