Skip to content

Instantly share code, notes, and snippets.

@cam8001
Created April 20, 2026 23:32
Show Gist options
  • Select an option

  • Save cam8001/9e042baf35fe2484afa206853f8b8c98 to your computer and use it in GitHub Desktop.

Select an option

Save cam8001/9e042baf35fe2484afa206853f8b8c98 to your computer and use it in GitHub Desktop.
git config standard stuff
[user]
email = ctod@amazon.com
name = Cameron Tod
[core]
pager = /opt/homebrew/Cellar/git/2.53.0_1/share/git-core/contrib/diff-highlight/diff-highlight | less
[alias]
# From https://stackoverflow.com/questions/1838873/visualizing-branch-topology-in-git/34467298#34467298
lg = lg1
lg1 = lg1-specific --all
lg2 = lg2-specific --all
lg3 = lg3-specific --all
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(auto)%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(auto)%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(auto)%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)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment