Skip to content

Instantly share code, notes, and snippets.

@KyleMit
Created January 28, 2019 14:09
Show Gist options
  • Save KyleMit/fb5f37a0296b5873b148a9d42a99985d to your computer and use it in GitHub Desktop.
Save KyleMit/fb5f37a0296b5873b148a9d42a99985d to your computer and use it in GitHub Desktop.
Fun Git Logs

Color Formatted:

$ git log --no-merges --shortstat --author="Kyle Mitofsky" --date=format:'%m/%d %I:%M %p' --pretty="@%C(yellow)%h %C(green)%cn %C(cyan)%cd %C(reset)- %<(50,trunc)%s"

One Line:

$ git log --no-merges --shortstat --author="Kyle Mitofsky" --date=format:'%m/%d %I:%M %p' --pretty="@%C(yellow)%h %C(green)%cn %C(cyan)%cd %C(reset)- %<(50,trunc)%s" | tr "\n" " "  |  tr "@" "\n" |  sed -r 's/ insertions?| deletions?|[0-9]* files? changed,//g'

Docs

Git Log

Bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment