Last active
November 16, 2022 17:48
-
-
Save dbalduini/f1c07899a09ca6566ad576a2b9d1189b to your computer and use it in GitHub Desktop.
git alias
This file contains hidden or 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.co 'checkout' | |
git config --global alias.br 'branch' | |
git config --global alias.st 'status' | |
git config --global alias.alias 'config --get-regexp ^alias' | |
git config --global alias.squash '!git reset $(git merge-base master $(git branch --show-current))' | |
git config --global alias.squash-undo 'reset HEAD@{1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment