Skip to content

Instantly share code, notes, and snippets.

@Shide
Created May 28, 2021 13:42
Show Gist options
  • Save Shide/515e51048a9d62a6b8f57f04259936f8 to your computer and use it in GitHub Desktop.
Save Shide/515e51048a9d62a6b8f57f04259936f8 to your computer and use it in GitHub Desktop.
Cool Gitconfig Aliases
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
recent = !git branch --sort=-committerdate --format='%(color:bold green)%(HEAD)%(color:reset)%(color:yellow)%(refname:short)%(color:reset)|%(color:bold green)%(committerdate:relative)|%(color:cyan)%(subject)|%(color:magenta)%(authorname)%(color:reset)' --color=always | column -ts '|'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment