Skip to content

Instantly share code, notes, and snippets.

@danlsgiga
Created March 26, 2021 21:38
Show Gist options
  • Save danlsgiga/994b3dcb97bc5c9b5c50b315e1f74d2a to your computer and use it in GitHub Desktop.
Save danlsgiga/994b3dcb97bc5c9b5c50b315e1f74d2a to your computer and use it in GitHub Desktop.
Nice git log messages
$ git config --global alias.lg "log --graph --abbrev-commit --decorate --date=format:'%Y-%m-%d %H:%M:%S' --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%ad%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'"
$ git config --global alias.hist "log --oneline --graph --decorate --all”
$ git config --global branch.sort "-committerdate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment