Last active
October 20, 2022 11:48
-
-
Save showmeyourhits/ed8c83a8c58d05572097487ce8d28912 to your computer and use it in GitHub Desktop.
Mine Git aliases that I'm very used to.
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
# Commit + amend = CommEnd | |
git config --global alias.commend 'commit --amend --no-edit' | |
# Useful for temporary work saving - git stash is not safe | |
git config --global alias.tempo 'commit -m tempo --all --no-verify' | |
# Commend + Please = Code Review | |
git config --global alias.please 'push --force-with-lease' | |
# Undo last commit changes - used with git tempo | |
git config --global alias.uncommit 'reset HEAD~1' | |
# Short status | |
git config --global alias.st 'status --branch --short' | |
# Short commit command | |
git config --global alias.cm 'commit' | |
# Short checkout | |
git config --global alias.co 'checkout' | |
# Push and create branch on upstream - useful for new branches | |
git config --global alias.pushon 'push -u origin HEAD' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment