Browse code

Putting Git related aliases into git.zsh to have them in context.

Martin Klepsch authored on 19/12/2009 at 13:35:57
Showing 2 changed files
... ...
@@ -25,21 +25,6 @@ alias ss='sudo su -'
25 25
 
26 26
 #alias g='grep -in'
27 27
 
28
-# Git related
29
-alias g='git'
30
-alias gst='git status'
31
-alias gl='git pull'
32
-alias gup='git fetch && git rebase'
33
-alias gp='git push'
34
-alias gd='git diff | mate'
35
-alias gdv='git diff -w "$@" | vim -R -'
36
-alias gc='git commit -v'
37
-alias gca='git commit -v -a'
38
-alias gb='git branch'
39
-alias gba='git branch -a'
40
-alias gcount='git shortlog -sn'
41
-alias gcp='git cherry-pick'
42
-
43 28
 # Show history
44 29
 alias history='fc -l 1'
45 30
 
... ...
@@ -65,4 +50,4 @@ alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Ra
65 65
 alias etts='mate app config lib db public script spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
66 66
 
67 67
 # Editor Ruby file in TextMate
68
-alias mr='mate CHANGELOG app config db lib public script spec test'
69 68
\ No newline at end of file
69
+alias mr='mate CHANGELOG app config db lib public script spec test'
... ...
@@ -20,3 +20,18 @@ function current_branch() {
20 20
   ref=$(git symbolic-ref HEAD 2> /dev/null) || return
21 21
   echo ${ref#refs/heads/}
22 22
 }
23
+
24
+# Aliases
25
+alias g='git'
26
+alias gst='git status'
27
+alias gl='git pull'
28
+alias gup='git fetch && git rebase'
29
+alias gp='git push'
30
+alias gd='git diff | mate'
31
+alias gdv='git diff -w "$@" | vim -R -'
32
+alias gc='git commit -v'
33
+alias gca='git commit -v -a'
34
+alias gb='git branch'
35
+alias gba='git branch -a'
36
+alias gcount='git shortlog -sn'
37
+alias gcp='git cherry-pick'