Skip to content

Instantly share code, notes, and snippets.

@Brayan-724
Last active March 24, 2023 01:58
Show Gist options
  • Save Brayan-724/8a8eadfe4b76648a4fce53a33b9459a7 to your computer and use it in GitHub Desktop.
Save Brayan-724/8a8eadfe4b76648a4fce53a33b9459a7 to your computer and use it in GitHub Desktop.
Beautiful git log [WITH SCREENSHOT] compatible with bash, zsh, fish and any other shell. Based on https://medium.com/@joelmalone/a-better-git-log-8748bfed7a3b
# Beautiful git log compatible with bash, zsh, fish and any other shell
# based on: https://medium.com/@joelmalone/a-better-git-log-8748bfed7a3b
git log --graph --all --decorate --format=format:'%C(dim)%h - %C(reset)%C(bold cyan)%ah %C(green)(%ar)%C(yellow)%d%C(reset)%n'' %s%C(dim white) - %an%C(reset)'
# As alias
alias glol=git log --graph --all --decorate --format=format:'%C(dim)%h - %C(reset)%C(bold cyan)%ah %C(green)(%ar)%C(yellow)%d%C(reset)%n'' %s%C(dim white) - %an%C(reset)'"
@Brayan-724
Copy link
Author

SCREENSHOT OF OUTPUT:
image

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