Last active
December 22, 2021 19:14
-
-
Save sagiavinash/a1bde720482805d208f5390b1113e39f to your computer and use it in GitHub Desktop.
My Git Aliases
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.ci 'commit'; | |
git config --global alias.st 'status'; | |
git config --global alias.br 'branch'; | |
git config --global alias.unstage 'reset HEAD --'; | |
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.tree 'log --all --graph --decorate --oneline --simplify-by-decoration'; | |
git config --global alias.als 'config --get-regexp alias'; | |
git config --global alias.clog 'log --pretty=oneline --abbrev-commit'; | |
git config --global alias.cb 'rev-parse --abbrev-ref HEAD'; | |
git config --global alias.pullc '!f() { git pull origin $(git cb); }; f'; | |
git config --global alias.pushc '!f() { git push origin $(git cb); }; f'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make gist runnable in shell