Skip to content

Instantly share code, notes, and snippets.

@dariodiaz
Created March 14, 2012 03:11
Show Gist options
  • Save dariodiaz/2033734 to your computer and use it in GitHub Desktop.
Save dariodiaz/2033734 to your computer and use it in GitHub Desktop.
bash: git commit history
git reflog show | grep '}: commit' | nl | sort -nr | nl | sort -nr | cut --fields=1,3 | sed s/commit://g | sed -e 's/HEAD*@{[0-9]*}://g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment