Comment on The Go language's first commit (1972)parentComments−cestith4yStep 1: change system clockStep 2: make a commitStep 3: rebase later commits to that commitStep 4: force push to the main branchStep 5: correct system clockTry it. It works.−TheDong4yI can save you some time: git commit --date "Tue Jul 18 19:05:45 1972 -0500" That format actually works just fine for --date.There's also the GIT_AUTHOR_DATE and GIT_COMMITTER_DATE environment variables.−cestith4yTIL. I've never needed this, but it could come in handy in the past.Thanks.
Comments
Step 1: change system clock
Step 2: make a commit
Step 3: rebase later commits to that commit
Step 4: force push to the main branch
Step 5: correct system clock
Try it. It works.
I can save you some time:
That format actually works just fine for --date.There's also the GIT_AUTHOR_DATE and GIT_COMMITTER_DATE environment variables.
TIL. I've never needed this, but it could come in handy in the past.
Thanks.