git.plugin.zsh 551 B

123456789101112131415161718192021
  1. # Aliases
  2. alias g='git'
  3. alias gst='git status'
  4. alias gl='git pull'
  5. alias gup='git fetch && git rebase'
  6. alias gp='git push'
  7. alias gd='git diff | mate'
  8. alias gdv='git diff -w "$@" | vim -R -'
  9. alias gc='git commit -v'
  10. alias gca='git commit -v -a'
  11. alias gb='git branch'
  12. alias gba='git branch -a'
  13. alias gcount='git shortlog -sn'
  14. alias gcp='git cherry-pick'
  15. # Git and svn mix
  16. alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
  17. alias ggpull='git pull origin $(current_branch)'
  18. alias ggpush='git push origin $(current_branch)'