Skip to content

Commit

Permalink
feat(git): add reset aliases grhk and grhs (ohmyzsh#11896)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Sep 26, 2023
1 parent e2b8553 commit 4fb5d02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ plugins=(... git)
| `grh` | `git reset` |
| `gru` | `git reset --` |
| `grhh` | `git reset --hard` |
| `grhk` | `git reset --keep` |
| `grhs` | `git reset --soft` |
| `gpristine` | `git reset --hard && git clean -dffx` |
| `groh` | `git reset origin/$(git_current_branch) --hard` |
| `grs` | `git restore` |
Expand Down
2 changes: 2 additions & 0 deletions plugins/git/git.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ alias grup='git remote update'
alias grh='git reset'
alias gru='git reset --'
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 groh='git reset origin/$(git_current_branch) --hard'
alias grs='git restore'
Expand Down

0 comments on commit 4fb5d02

Please sign in to comment.