Git won't track empty directories (because at heart it only tracks files). Common advice is to add a '.gitkeep' file so the directory isn't empty and git will make the directory.

EVEN BETTER ADVICE: put a README in the directory explaining what the empty directory is for and what will eventually be there.

@nedbat
One thing I started doing a few years ago is to add a .gitignore file that contains

!.gitignore
*

Instead of the wildcard, you can also list the specific things you want to ignore. Of course, a few comments about why you ignore what or why this exists helps as well 😇.

@nedbat
The gitignore serves then as both documentation and the replacement for .gitkeep