Skip to content

Commit

Permalink
Add alias for git reset --hard and grh like OMZ
Browse files Browse the repository at this point in the history
  • Loading branch information
bittner committed Nov 2, 2023
1 parent e38696a commit 07298ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aliases/available/git.aliases.bash
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ alias grma='GIT_SEQUENCE_EDITOR=: git rebase $(get_default_branch) -i --autosqu
alias gprom='git fetch origin $(get_default_branch) && git rebase origin/$(get_default_branch) && git update-ref refs/heads/$(get_default_branch) origin/$(get_default_branch)' # Rebase with latest remote

# reset
alias gus='git reset HEAD'
alias gus='git reset HEAD' # read as: 'git unstage'
alias grh='git reset' # equivalent to: git reset HEAD
alias grh!='git reset --hard'
alias gpristine='git reset --hard && git clean -dfx'

# status
Expand Down

0 comments on commit 07298ad

Please sign in to comment.