Scott
Scott

Reputation: 303

Backdating git commits

I suffered a hard drive crash and lost a couple of project folders. These are personal projects and weren't hosted anywhere. I have a dozen compressed zip files of releases, but that's it.

Were I to start with the earliest version, how can I change the date of the commit to match the release date? My thinking is I could do this for each of the versions and have the commit date at least somewhat semblance of the development timeline/history.

Upvotes: 2

Views: 3972

Answers (1)

Chandan Kumar Thakur
Chandan Kumar Thakur

Reputation: 292

git commit --amend --no-edit --date="Fri Nov 6 20:00:00 2015 -0600"

Upvotes: 6

Related Questions