Просмотр исходного кода

add git patch addding and submodule updating aliases

git's patch adding is super, as we have now discovered editing-while-adding :D
Weiyi Lou 12 лет назад
Родитель
Сommit
f8441f63d4
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      zsh/omz-custom/git.zsh

+ 3 - 0
zsh/omz-custom/git.zsh

@@ -1,6 +1,7 @@
 # preferred git shortcuts, not in the git plugin
 
 alias ga.='git add .'
+alias gap='git add -p'
 
 alias gs='git status'
 alias gd='git diff'
@@ -31,6 +32,8 @@ alias gsr='git show --format=raw'
 
 # useful if you forget to setup tracking for a new branch when checking out.
 alias track='git branch --set-upstream $(current_branch) origin/$(current_branch) && git fetch'
+alias gsu='git submodule sync && git submodule update --init'
+alias gsp='git submodule foreach git pull origin master'
 
 # useful omz git plugin ones include:
 #   ga, gc, gco, gb, gba, gm, grhh, ggpull, ggpush