Tuesday, December 27, 2016

How to checkout repo contents as it was on a given date in git

A bit tricky, but this does it:

git checkout `git rev-list -n 1 --before="2009-07-27 13:37" master`

No comments:

Post a Comment