Last active
August 9, 2016 01:24
-
-
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.
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
# 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