Skip to content

Instantly share code, notes, and snippets.

@tyrcho
Last active May 16, 2016 13:38
Show Gist options
  • Save tyrcho/354a950d3cf592c12e46 to your computer and use it in GitHub Desktop.
Save tyrcho/354a950d3cf592c12e46 to your computer and use it in GitHub Desktop.
log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative --all
git log --pretty=format:"[%h] %an %ad %s" --numstat --date=short
git log --pretty=format:"[%h] %an %ad %s" --numstat --date=short --follow FILENAME
rem get all commits ids from auser, from all branches
git log --pretty=format:"%H" --author=auser --all
rem diff at character level instead of line
git diff HEAD~5 --word-diff-regex=.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment