Skip to content

Instantly share code, notes, and snippets.

@busbey
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save busbey/2c48ac501482fc1f1e53 to your computer and use it in GitHub Desktop.
Save busbey/2c48ac501482fc1f1e53 to your computer and use it in GitHub Desktop.
[alias]
hist = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
oldest-ancestor = !zsh -c 'diff --old-line-format='' --new-line-format='' <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | head -1' -
[core]
editor = /usr/bin/vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment