Last active
October 5, 2020 14:51
-
-
Save EngPeterShaker/29eecc5e46cfd02913aa056195194a3d to your computer and use it in GitHub Desktop.
git alias
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
* `https://githowto.com/aliases` | |
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.pl pull | |
git config --global alias.ps push | |
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" | |
git config --global alias.type 'cat-file -t' | |
git config --global alias.dump 'cat-file -p' | |
git config --global alias.fel 'fetch --all' | |
git config --global alias.fe fetch | |
git config --global alias.uncm 'reset HEAD~1 --soft' | |
git config --global alias.psl 'push --force-with-lease' | |
git config --global alias.psf 'push --force' | |
git config --global alias.lg git log | |
git config --global alias.lgo git log --oneline # more succinct output | |
git config --global alias.lgg git log --oneline --decorate --graph --all | |
** for one time run all | |
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.pl pull && git config --global alias.ps push && git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" && git config --global alias.type 'cat-file -t' && git config --global alias.dump 'cat-file -p && git config --global alias.fel 'fetch --all' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment