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

add alias for raw git show command

Lots of info. Lets us easily see things like parent hashes and committer/author.
Weiyi Lou 13 лет назад
Родитель
Сommit
f0d9a23e8e
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      zsh/omz-custom/git.zsh

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

@@ -23,7 +23,9 @@ alias grb='git rebase'
 alias grh='git reset --hard'
 alias grh='git reset --hard'
 alias grs='git reset --soft'
 alias grs='git reset --soft'
 
 
-alias gtrack='git branch --set-upstream $(current_branch) origin/$(current_branch) && git fetch'
+alias gsr='git show --format=raw'
+
+alias track='git branch --set-upstream $(current_branch) origin/$(current_branch) && git fetch'
 
 
 # useful git plugin built-in ones include:
 # useful git plugin built-in ones include:
 #   ga, gc, gco, gb, gba, gm, grhh, ggpull, ggpush
 #   ga, gc, gco, gb, gba, gm, grhh, ggpull, ggpush