Skip to content

Instantly share code, notes, and snippets.

@LuisRBarreras
Last active August 12, 2022 20:50
Show Gist options
  • Save LuisRBarreras/fe255b655db6aabef3d2 to your computer and use it in GitHub Desktop.
Save LuisRBarreras/fe255b655db6aabef3d2 to your computer and use it in GitHub Desktop.
git custom config
# show compact and simplet log commits
git config --global alias.mylog "log --pretty=format:'%Cred%h%Creset - %Cgreen%s%Creset %C(yellow)[%an]%Creset %C(cyan)<%ad>%Creset' --graph --date=short"
# list branch order by most recent commit
git config --global alias.mybranches "branch --sort=-committerdate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment