Skip to content

Instantly share code, notes, and snippets.

View Brayan-724's full-sized avatar
💭
Wuuhuu

Apika Luca Brayan-724

💭
Wuuhuu
View GitHub Profile
@Brayan-724
Brayan-724 / git-log.sh
Last active March 24, 2023 01:58
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)'"