I’m trying to clone a git repository from a certain date. Even if this is not possible. Is it possible to clone the git repository and then roll it back to a certain date?
Example: my repository has been updated since May 2010, but I’d like to get the version from June 5th. I’d like to run the following command:
git clone git@github.com:projectfolder -date 06-05-2010
Cloning the repository will give you the entire commit history of all the source code.
You need only scroll back through
git logand find the desired commit on your target date. Runninggit checkout SHAwhereSHAis the commit hash will give you the state of the source code on that date.edit:
git log --since=2010-06-05 --until=2010-06-06will help narrow it down!