diff --git a/dotfiles/.zsh_aliases b/dotfiles/.zsh_aliases index 1eb94d37..74ad8292 100644 --- a/dotfiles/.zsh_aliases +++ b/dotfiles/.zsh_aliases @@ -64,8 +64,8 @@ alias gc="git commit -m" # Easily create new commits alias gd="clear && git diff" # Dedicate the entire window to showing file changes alias gp="git push" # Push your commits to remote (usually origin) alias gs="git status" # Compare any local changes you've made to the remote -alias gr="git reset HEAD" # Undo the last commit but keep your changed files -alias grr="git reset --hard HEAD" # Remove the last commit and all changes with it +alias gr="git reset HEAD~" # Undo the last commit but keep your changed files +alias grr="git reset --hard HEAD~" # Remove the last commit and all changes with it # Easily cd into the "home" directory of any repository you're working in alias gh="cd `git rev-parse --show-toplevel`"