Skip to content

Instantly share code, notes, and snippets.

@dib258
Created August 29, 2018 10:40
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 dib258/00f2e0c66b5f3b8dda75f78ec8994d1e to your computer and use it in GitHub Desktop.
Save dib258/00f2e0c66b5f3b8dda75f78ec8994d1e to your computer and use it in GitHub Desktop.
git hist command and color
git config --global alias.hist "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"
git config --global alias.histlong "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"
iTerm Color :
Black #202020/#555555
Red: #5d1a14/#da4939
Green: #424e24/#a5c261
Yellow: #6f5028/#ffc66d
Blue: #263e4e/#6d9cbe
Magenta: #3e1f50/#a256c7
Cyan: #234e3f/#62c1a1
White: #979797/#ffffff
https://stackoverflow.com/a/9074343/2018745
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment