Last active
December 18, 2018 11:48
-
-
Save hectorcanto/4948a72ed130ae74f88455354e870e5a to your computer and use it in GitHub Desktop.
Configure git aliases for faster CLI input
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
alias g=git | |
__git_complete g _git | |
alias gti=git | |
__git_complete gti _git |
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
git config --global alias.s status | |
git config --global alias.a add | |
git config --global alias.d diff | |
git config --global alias.dh "diff HEAD" | |
git config --global alias.c "commit -m" | |
git config --global alias.l "log --pretty=format:'%C(yellow)%h %Cred%<(12,trunc)%ad %Cblue%<(8,trunc)%an%Cgreen%d %Creset%s' --relative-date" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment