Skip to content

Instantly share code, notes, and snippets.

View jaguarfi's full-sized avatar

Jhosimar Aguacia jaguarfi

View GitHub Profile
@jaguarfi
jaguarfi / git-lol-hist.md
Last active March 8, 2021 12:51
Add aliases for the git log command

Open the terminal and type or copy the following commands.

git config --global alias.lol "log --graph --decorate --pretty=oneline --abbrev-commit --all"
git config --global alias.hist "log --pretty=format:'%C(yellow)%h%Creset %Cgreen%ad%Creset | %s %C(bold blue)[%an] %C(bold red)%d' --graph --date=short --color"

You can verify that the aliases have been added by running the command git config --list. You should see something like this in the terminal: