Last active
June 10, 2022 15:34
-
-
Save stchar/7fc4b2327d023ca2a9b6fb35c91d00d8 to your computer and use it in GitHub Desktop.
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.ci commit | |
git config --global alias.st status | |
git config --global alias.br branch | |
git config --global alias.cp cherry-pick | |
# Overwrite remote reference(s) | |
git config --global alias.pf "push --force" | |
# Fetch all remote repositories | |
# Delete all outdated refereces | |
git config --global alias.fa "fetch --all --prune" | |
# Amend commit reusing current commit message | |
git config --global alias.amend "commit --amend --no-edit" | |
# Amend commit reusing current commit message & automatically adding all draft changes except untracked files | |
git config --global alias.bump "commit --amend --no-edit -a" | |
# Show graph for all branches | |
git config --global alias.ll "log --oneline --decorate --all --graph" | |
# Show graph for current branch | |
git config --global alias.l "log --oneline --decorate --graph" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment