git clone --shallow-since=2024-01-01 https://github.com/expressjs/express.git

Category: Git - Core

git clone --shallow-since=2024-01-01 https://github.com/expressjs/express.git

Clone history only since a given date

A shallow clone downloads only commits newer than the given date, cutting transfer size for very old histories. The commit graph is truncated, so operations like git log --follow or merging deep history may need to fetch more. Use --depth 1 for the absolute minimum history.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.