Skip to content

Instantly share code, notes, and snippets.

@foresthoffman
Last active May 10, 2019 00:19
Show Gist options
  • Save foresthoffman/9a32efaed793c5ad3e9d827702cff327 to your computer and use it in GitHub Desktop.
Save foresthoffman/9a32efaed793c5ad3e9d827702cff327 to your computer and use it in GitHub Desktop.
Special formatting and alias for git-log
[core]
autocrlf = false
filemode = false
[alias]
lg1=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)' --all
lg2=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)' --all
lg=!git lg1
[user]
name = Forest Hoffman
email = forestjhoffman@gmail.com
[push]
default = current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment