Skip to content

Instantly share code, notes, and snippets.

@ricardogarfe
Last active June 3, 2019 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricardogarfe/c08731f578edc3ec54048375fcb206b5 to your computer and use it in GitHub Desktop.
Save ricardogarfe/c08731f578edc3ec54048375fcb206b5 to your computer and use it in GitHub Desktop.
Configure console git log
[alias]
lg = !"git lg1"
lg1 = !"git lg1-specific"
lg2 = !"git lg2-specific"
lg3 = !"git lg3-specific"
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'
showtag = !sh -c 'git rev-parse $1 | xargs git cat-file -p' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment