... | ... |
@@ -1,19 +1,34 @@ |
1 | 1 |
# Aliases |
2 | 2 |
alias g='git' |
3 |
+compdef g=git |
|
3 | 4 |
alias gst='git status' |
5 |
+compdef gst=git |
|
4 | 6 |
alias gl='git pull' |
7 |
+compdef gl=git |
|
5 | 8 |
alias gup='git fetch && git rebase' |
9 |
+compdef gup=git |
|
6 | 10 |
alias gp='git push' |
11 |
+compdef gp=git |
|
7 | 12 |
alias gd='git diff | mate' |
13 |
+compdef gd=git |
|
8 | 14 |
alias gdv='git diff -w "$@" | vim -R -' |
15 |
+compdef gdv=git |
|
9 | 16 |
alias gc='git commit -v' |
17 |
+compdef gc=git |
|
10 | 18 |
alias gca='git commit -v -a' |
19 |
+compdef gca=git |
|
11 | 20 |
alias gco='git checkout' |
21 |
+compdef gco=git |
|
12 | 22 |
alias gb='git branch' |
23 |
+compdef gb=git |
|
13 | 24 |
alias gba='git branch -a' |
25 |
+compdef gba=git |
|
14 | 26 |
alias gcount='git shortlog -sn' |
27 |
+compdef gcount=git |
|
15 | 28 |
alias gcp='git cherry-pick' |
29 |
+compdef gcp=git |
|
16 | 30 |
alias glg='git log --stat --max-count=5' |
31 |
+compdef glg=git |
|
17 | 32 |
|
18 | 33 |
# Git and svn mix |
19 | 34 |
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk' |
... | ... |
@@ -29,5 +44,8 @@ function current_branch() { |
29 | 29 |
|
30 | 30 |
# these aliases take advantage of the previous function |
31 | 31 |
alias ggpull='git pull origin $(current_branch)' |
32 |
+compdef ggpull=git |
|
32 | 33 |
alias ggpush='git push origin $(current_branch)' |
34 |
+compdef ggpush=git |
|
33 | 35 |
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)' |
36 |
+compdef ggpnp=git |