The gitkeep method
Here’s something new about git I learned, based on a suggestion working with Claude: the .gitkeep method.
I was making a new spec repository for sharing tech specs from stories. Some of the directories were empty.
Claude noted that there was a convention, not part of git, to create a .gitkeep file in an empty folder structure to get that folder checked in, because git doesn’t allow commit of these empty folders.
Works great. Just add a .gitkeep (empty) file to your directory and it will allow you to commit that directory. Then you can remove .gitkeep when you wish once you get some files in there.