Skip to content

Instantly share code, notes, and snippets.

@nijotz
Last active October 23, 2025 16:14
Show Gist options
  • Select an option

  • Save nijotz/ebffb4c67b9004987115d59b85d59d66 to your computer and use it in GitHub Desktop.

Select an option

Save nijotz/ebffb4c67b9004987115d59b85d59d66 to your computer and use it in GitHub Desktop.
git aliases
[alias]
st = status -sb
me = log --author=Nick
lg = log --pretty=format:'%C(yellow)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative --graph
lgd = log --pretty=format:'%C(yellow)%h%C(reset) - %C(green)%cd %C(reset)%s %C(cyan)<%an>%C(yellow)%d%C(reset)' --abbrev-commit --graph --date=format:'%Y-%m-%d %a %H:%M'
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment