1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

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

This commit is contained in:
Adam Johnson 2023-09-26 08:31:32 +01:00 committed by GitHub
parent e2b855341b
commit 4fb5d02db9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -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` |

View file

@ -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'