Skip to content

Instantly share code, notes, and snippets.

@iolloyd
Created February 4, 2015 19:33
Show Gist options
  • Save iolloyd/a3ad69acd05d78c1aa2a to your computer and use it in GitHub Desktop.
Save iolloyd/a3ad69acd05d78c1aa2a to your computer and use it in GitHub Desktop.
first commit of a git repository
git rev-list --all|tail -n1|xargs git show|grep -v diff|head -n1|cut -f1-3 -d' '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment