mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
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:
parent
f56a77a500
commit
0d644e7997
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue