4 ms·
I always initialize my repos with git commit --allow-empty -m "Initial commit", for that exact reason. I agree with you that git should provide a root commit on
by scrollaway 6y ago
I always initialize my repos with git commit --allow-empty -m "Initial commit", for that exact reason. I agree with you that git should provide a root commit on init.
- patrec 6y agoSee my reply to sibling on how to do it in a reproducible fashion. Maybe we should just all agree on a canoncial initial commit after all? :)
- scrollaway 6y agoI don't think there's a real point to do this "in a standardized way"; imo we should just push for git initializing its own empty initial commit.
- patrec 6y agoI agree git init should do it, but a) it still needs to be the same commit every time to work properly b) a particular "canonical" standard initial commit becoming a defacto standard in the wild presumably increases the chances that this makes it into git itself.