Re:The Go language's first commit (1972)
by Jabbles on Monday February 14, 2022 @07:53AM
(#30331407)
Something about the way git works suggests to me that Google did not in fact just change the timestamp on the first commit in their repository.
[ Parent
| on HN ]
Force push works just fine for changing timestamps.
Re:The Go language's first commit (1972)
by samatman on Monday February 14, 2022 @11:08AM
(#30333674)
Something tells me your model of how git works is completely incorrect.
Re:The Go language's first commit (1972)
by cestith on Monday February 14, 2022 @11:30AM
(#30333980)
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.
Re:The Go language's first commit (1972)
by TheDong on Monday February 14, 2022 @03:19PM
(#30337693)
I 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.