Skip to content

Instantly share code, notes, and snippets.

@commuterjoy
Created March 20, 2017 13:20
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 commuterjoy/e2e0b491f280362ec06e6a0e369dd583 to your computer and use it in GitHub Desktop.
Save commuterjoy/e2e0b491f280362ec06e6a0e369dd583 to your computer and use it in GitHub Desktop.
Rollback git commits and generate code stats
git log | egrep "^commit" | cut -d ' ' -f 2 | xargs -I % echo "git reset --hard % && cloc ." | /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment