Get the latest tech news

Back dating Git commits based on file modification dates


I fell down a bit of a rabbit hole this morning. In trying to figure out where the idea of celebrating World Wide Web Day on August 1st came from I ran across Tim Berner-Lee's original code for the WorldWideWeb application for NeXT on the W3C's website:

It's served up as a browseable Apache directory listing, but that's not the most delightful way to browse code - clicking a link to a.m file triggers a download, for example. I decided to copy the code over to a GitHub repository, in order to browse it more easily with syntax highlighting and the like. This gave me a directory full of files... and to my delight they included the correct last modified dates, according to ls -lah:

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Git

Git

Photo of dating Git commits

dating Git commits

Related news:

News photo

Show HN: Vdm, a sane alternative to e.g. Git submodules

News photo

Working with stacked branches in Git is easier with –update-refs (2022)

News photo

Git 2.46-rc0 Continues Preparations For Switching To SHA256 By Default WIth Git 3.0