Last Updated: February 25, 2016
·
249
· padawin

checkout a commit in git based on a time in the past

git checkout HEAD@{'1 month ago'}

Will checkout the commit dating from 1 month ago, whatever the commit is.

The time span can of course be changed (2 weeks ago for example).