Skip to content

Instantly share code, notes, and snippets.

@fovea1959
Last active March 28, 2020 17:17
Show Gist options
  • Select an option

  • Save fovea1959/9a10acc9daf43664f080dcbe8822f3ed to your computer and use it in GitHub Desktop.

Select an option

Save fovea1959/9a10acc9daf43664f080dcbe8822f3ed to your computer and use it in GitHub Desktop.
[alias]
# https://stackoverflow.com/questions/1057564/pretty-git-branch-graphs
dog = log --all --decorate --oneline --graph
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"
orphank = !gitk --all --date-order ``git reflog | cut -c1-7``&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment