Browse Source

feat(git): add reset aliases `grhk` and `grhs` (#11896)

Adam Johnson 1 year ago
parent
commit
4fb5d02db9
2 changed files with 4 additions and 0 deletions
  1. 2 0
      plugins/git/README.md
  2. 2 0
      plugins/git/git.plugin.zsh

+ 2 - 0
plugins/git/README.md

@@ -163,6 +163,8 @@ plugins=(... git)
 | `grh`                  | `git reset`                                                                                                                                                         |
 | `grh`                  | `git reset`                                                                                                                                                         |
 | `gru`                  | `git reset --`                                                                                                                                                      |
 | `gru`                  | `git reset --`                                                                                                                                                      |
 | `grhh`                 | `git reset --hard`                                                                                                                                                  |
 | `grhh`                 | `git reset --hard`                                                                                                                                                  |
+| `grhk`                 | `git reset --keep`                                                                                                                                                  |
+| `grhs`                 | `git reset --soft`                                                                                                                                                  |
 | `gpristine`            | `git reset --hard && git clean -dffx`                                                                                                                               |
 | `gpristine`            | `git reset --hard && git clean -dffx`                                                                                                                               |
 | `groh`                 | `git reset origin/$(git_current_branch) --hard`                                                                                                                     |
 | `groh`                 | `git reset origin/$(git_current_branch) --hard`                                                                                                                     |
 | `grs`                  | `git restore`                                                                                                                                                       |
 | `grs`                  | `git restore`                                                                                                                                                       |

+ 2 - 0
plugins/git/git.plugin.zsh

@@ -310,6 +310,8 @@ alias grup='git remote update'
 alias grh='git reset'
 alias grh='git reset'
 alias gru='git reset --'
 alias gru='git reset --'
 alias grhh='git reset --hard'
 alias grhh='git reset --hard'
+alias grhk='git reset --keep'
+alias grhs='git reset --soft'
 alias gpristine='git reset --hard && git clean --force -dfx'
 alias gpristine='git reset --hard && git clean --force -dfx'
 alias groh='git reset origin/$(git_current_branch) --hard'
 alias groh='git reset origin/$(git_current_branch) --hard'
 alias grs='git restore'
 alias grs='git restore'