duaneleem
8/9/2016 - 1:01 AM

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 updat

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