4fb5d02db94fa87d22afea9825bd5f866e0cd1ac
- Author
- Adam Johnson <me@adamj.eu>
- Committer
- GitHub <noreply@github.com>
- Date
Message
feat(git): add reset aliases `grhk` and `grhs` (#11896)
Diff
1diff --git a/plugins/git/README.md b/plugins/git/README.md
2index 5a732ed63ea48421b82a2fe4ee76a119c4c13496..5b2db55fa0de6795cf53ed37c83627560b84b72b 100644
3--- a/plugins/git/README.md
4+++ b/plugins/git/README.md
5@@ -163,6 +163,8 @@ plugins=(... git)
6 | `grh` | `git reset` |
7 | `gru` | `git reset --` |
8 | `grhh` | `git reset --hard` |
9+| `grhk` | `git reset --keep` |
10+| `grhs` | `git reset --soft` |
11 | `gpristine` | `git reset --hard && git clean -dffx` |
12 | `groh` | `git reset origin/$(git_current_branch) --hard` |
13 | `grs` | `git restore` |
14diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
15index 527093c281adb3078c4a1828a91fd052a7341bdc..ba90c936ee6939d72ec002a2d2cf79b2ba1bab65 100644
16--- a/plugins/git/git.plugin.zsh
17+++ b/plugins/git/git.plugin.zsh
18@@ -310,6 +310,8 @@ alias grup='git remote update'
19 alias grh='git reset'
20 alias gru='git reset --'
21 alias grhh='git reset --hard'
22+alias grhk='git reset --keep'
23+alias grhs='git reset --soft'
24 alias gpristine='git reset --hard && git clean --force -dfx'
25 alias groh='git reset origin/$(git_current_branch) --hard'
26 alias grs='git restore'