Skip to content

Instantly share code, notes, and snippets.

@kristianfreeman
Forked from ttscoff/gitlogtoday.sh
Created January 31, 2012 02:54
Show Gist options
  • Save kristianfreeman/1708417 to your computer and use it in GitHub Desktop.
Save kristianfreeman/1708417 to your computer and use it in GitHub Desktop.
Git log for the last day, formatted for journal insertion
git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short --since="`date -v-1d '+%m/%d/%y'`"
Prettier:
git log --pretty=format:"%ad | [`pwd`]%n- %s%d" --graph --date=short --since="`date -v-1d '+%m/%d/%y'`"
Day One:
git log --pretty=format:"%ad | [`pwd`]%n- %s%d" --graph --date=short --since="`date -v-1d '+%m/%d/%y'`" | dayone new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment