Skip to content

Instantly share code, notes, and snippets.

@afucher
Created September 4, 2016 23:07
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 afucher/8c005d7f4cffc965eb7d4a4e77edae4e to your computer and use it in GitHub Desktop.
Save afucher/8c005d7f4cffc965eb7d4a4e77edae4e to your computer and use it in GitHub Desktop.
alias workrebase="git checkout master && git pull origin master && git checkout work && git rebase master"
alias worksync="workrebase && git checkout master && git merge work && git push origin master && git checkout work"
alias workghpagesrebase="git checkout gh-pages && git pull origin gh-pages && git checkout work && git rebase gh-pages"
alias workghpagessync="workghpagesrebase && git checkout gh-pages && git merge work && git push origin gh-pages && git checkout work"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment