git.zsh 665 B

1234567891011121314151617181920212223
  1. ## preferred git shortcuts not in the git plugin
  2. #
  3. alias ga.='git add .'
  4. alias gs='git status'
  5. alias gd='git diff'
  6. alias gds='git diff --staged'
  7. alias gcob='git checkout -b'
  8. alias gf='git fetch'
  9. alias gbd='git branch -D'
  10. alias gl='git log --graph --date=relative --pretty="format:%C(yellow)%h %Cblue[%cn] %Creset%s... %cd"'
  11. alias gls='git log --graph --stat'
  12. alias glp='git log -p'
  13. alias gr='git rebase'
  14. alias gtrack='git branch --set-upstream $(current_branch) origin/$(current_branch)'
  15. # useful git plugin built-in ones include:
  16. # ga, gc, gco, gb, gba, gm, grhh, ggpull, ggpush
  17. # ggpull translates into `git pull origin <current branch>`, same for ggpush