Skip to content

Instantly share code, notes, and snippets.

@rpunt
Created April 30, 2018 12:11
Show Gist options
  • Save rpunt/a2d9514e2c1414a7500f803281626c4f to your computer and use it in GitHub Desktop.
Save rpunt/a2d9514e2c1414a7500f803281626c4f to your computer and use it in GitHub Desktop.
Git Configs
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
since = !git log $(git merge-base --fork-point master)..HEAD
files-changed="!f() { git log --name-only $1..HEAD --oneline --format=%n ${2:-.} | grep -v '^$' | sort | uniq; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment