Skip to content

Instantly share code, notes, and snippets.

@dpritchett
Created May 10, 2011 21:31
Show Gist options
  • Save dpritchett/965421 to your computer and use it in GitHub Desktop.
Save dpritchett/965421 to your computer and use it in GitHub Desktop.
Simulate git log --oneline
# grep -vE removes lines matching the following expression
# sed is trimming leading whitespace
# awk is prepending "* " to each line ($0 is the entire line)
git log | grep -vE '^(Author|Date|commit|\w*$)' | sed 's/^\s*//g' | awk '{print "* " $0}' | head -10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment