You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aliases/available/git.aliases.bash
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,9 @@ alias grma='GIT_SEQUENCE_EDITOR=: git rebase $(get_default_branch) -i --autosqu
139
139
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
140
140
141
141
# reset
142
-
alias gus='git reset HEAD'
142
+
alias gus='git reset HEAD'# read as: 'git unstage'
143
+
alias grh='git reset'# equivalent to: git reset HEAD
144
+
alias grh!='git reset --hard'
143
145
alias gpristine='git reset --hard && git clean -dfx'
0 commit comments