Skip to content

Instantly share code, notes, and snippets.

@cmilfont
Created October 29, 2009 21:43
Show Gist options
  • Save cmilfont/221880 to your computer and use it in GitHub Desktop.
Save cmilfont/221880 to your computer and use it in GitHub Desktop.
#Comandos úteis para o git
# exibir quantos commits por autor
git log | grep ^Author | cut -d\< -f1 | sort | uniq -c | sort -n -r | head -20
#formatar o grafo de commits com um alias lg
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment