this post was submitted on 29 Sep 2023
59 points (94.0% liked)

Programmer Humor

32461 readers
651 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] lars@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

Because git doesn’t require, but could definitely benefit from, empty initial commits, my go-to is:

git init
git commit -m='🌳 root commit' --allow-empty
git tag v0.0.0 -am=''
git add -A
git commit -m='✨ initial commit'
git tag v0.0.1 -am=''

which is completely Nver- and Y2K-compliant