Last active
September 28, 2020 03:19
-
-
Save MZanggl/6ea5c1a734f5f5ec672801a8d8e4aa62 to your computer and use it in GitHub Desktop.
git common aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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