Skip to content

Instantly share code, notes, and snippets.

@RWhar
Created May 13, 2024 19:59
Show Gist options
  • Save RWhar/b92e2ab215317a6951b49514b31f0eb0 to your computer and use it in GitHub Desktop.
Save RWhar/b92e2ab215317a6951b49514b31f0eb0 to your computer and use it in GitHub Desktop.
[alias]
recent="!myf() { git for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:red)%(objectname:short)%(color:reset)|%(color:blue)%(authorname)%(color:reset)|%(color:bold green)%(committerdate:relative)%(color:reset)|%(color:yellow)%(refname:short)%(color:reset)|%(contents:subject)' --color=always --count=20 | column -ts '|';}; myf"
logline="!myf2() { git -P log -15 --graph --pretty=format:'%Cred%h%Creset - %Cblue%an%Creset %C(bold green) %cr %Creset %s %C(yellow)%d%Creset' --abbrev-commit; }; myf2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment