Unverified Commit 4fb5d02d authored by Adam Johnson's avatar Adam Johnson Committed by GitHub

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

parent e2b85534
...@@ -163,6 +163,8 @@ plugins=(... git) ...@@ -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` |
......
...@@ -310,6 +310,8 @@ alias grup='git remote update' ...@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment