H in gr* aliases (git reset) means --hard

Principle is to use a capital letter for more dangerous
commands. grh means "git reset HEAD", which cannot involve data lose.
grH means "git reset --hard", which CAN involve data lose.
grhH now means "git reset --hard HEAD".

I intentionnaly chose to not aliase H to "HEAD" and h to --hard.

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
Gaetan Semet 2014-10-13 11:44:31 +02:00
commit 0d644e7997

View file

@ -193,8 +193,8 @@ compdef _git grh=git-reset
alias grH='git reset --hard'
compdef _git grH=git-reset
# Hard reset to HEAD
alias grhh='git reset HEAD --hard'
compdef _git grhh=git-reset
alias grhH='git reset HEAD --hard'
compdef _git grhH=git-reset
################
# Git merge (gm)