Skip to content

Instantly share code, notes, and snippets.

@mhoyer
Created August 2, 2012 12:34
Show Gist options
  • Save mhoyer/3236735 to your computer and use it in GitHub Desktop.
Save mhoyer/3236735 to your computer and use it in GitHub Desktop.
Git log aliases
alias gl="git log --graph --all --format=format:'%C(bold blue)%h %C(bold green)(%cr) %C(bold white)%cn: %C(bold yellow)%d%C(reset) %C(white)%s%C(reset)' --abbrev-commit --date=relative && echo '\033[2A'"
alias gll="git log --graph --all --format=format:'%C(bold blue)%h %C(bold green)(%cr) %C(bold cyan)%cD %C(bold yellow)%d%n'' %C(bold white)%cn:%C(reset) %C(white)%s%C(reset)' --abbrev-commit && echo '\033[2A'"
@mhoyer
Copy link
Author

mhoyer commented Aug 2, 2012

Tried your sample, but still have single lines. :-|

@mhoyer
Copy link
Author

mhoyer commented Aug 2, 2012

Okay. It has to be upper cased %B instead of %b. But then also the single line commit messages are printed over two lines.

@AlexZeitler
Copy link

for me %b works fine #worksonmymachine ;-)
Did you commit multilines?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment