Skip to content

Instantly share code, notes, and snippets.

@hectorcanto
Last active December 18, 2018 11:48
Show Gist options
  • Save hectorcanto/4948a72ed130ae74f88455354e870e5a to your computer and use it in GitHub Desktop.
Save hectorcanto/4948a72ed130ae74f88455354e870e5a to your computer and use it in GitHub Desktop.
Configure git aliases for faster CLI input
alias g=git
__git_complete g _git
alias gti=git
__git_complete gti _git
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