Archive for November, 2012

Git checkout old revisions by date

Friday, November 9th, 2012 by Jesper Rønn-Jensen

I wanted to do some code stats for a repository. This line checks out old revisions by date and shows code stats: git checkout `git rev-list -n 1 –before=”2012-03-01″ master` Then, I ran cloc to count lines of code: cloc . Its really easy to register the point in time as a git branch so […]