Skip to content

Instantly share code, notes, and snippets.

@olih
Created March 17, 2015 16:29
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 olih/1ca9cfff5663de6aacef to your computer and use it in GitHub Desktop.
Save olih/1ca9cfff5663de6aacef to your computer and use it in GitHub Desktop.
Helpful aliases for git for zsh when using a rebase workflow
#GIT Alias
alias latest='git checkout master;git fetch --all;git rebase;git status;'
alias br='git show-branch;git branch;git status;'
alias h2='git rebase -i HEAD~2'
alias h3='git rebase -i HEAD~3'
alias h4='git rebase -i HEAD~4'
alias h5='git rebase -i HEAD~5'
alias h6='git rebase -i HEAD~6'
@olih
Copy link
Author

olih commented Apr 24, 2015

@olih
Copy link
Author

olih commented Apr 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment