Git 2.49, released in 2025-03-14 added support for this with the —revision
in the clone command
https://git-scm.com/docs/git-clone#Documentation/git-clone.txt-code--revisionltrevgtcode
git clone —-revision=683c54c999c301c2cd6f715c411407c413b1d84e —-depth=1 https://github.com/gig/git.git