Skip to content

Instantly share code, notes, and snippets.

@MZanggl
Last active September 28, 2020 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MZanggl/6ea5c1a734f5f5ec672801a8d8e4aa62 to your computer and use it in GitHub Desktop.
Save MZanggl/6ea5c1a734f5f5ec672801a8d8e4aa62 to your computer and use it in GitHub Desktop.
git common aliases
git config --global alias.amend "commit --amend --no-edit"
git config --global alias.update "pull --rebase origin develop"
git config --global alias.nah "! git reset --hard && git clean -df"
git config --global alias.commit-crime "commit -n"
git config --global alias.alias "! git config --get-regexp ^alias\. | sed -e s/^alias\.// -e s/\ /\ =\ /"
git config --global alias.arrange "rebase -i develop"
git config --global alias.recent "branch --sort=-committerdate" # most recent branches
git config --global alias.stash-unstaged "stash save --keep-index -u"
git config --global alias.undo-commit "reset HEAD~ --soft"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment