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 You can technically commit empty directories with some Git magic (https://github.com/dextercd/git-empty-directory/tree/main), but it's probably unwise.

A README is a lot more helpful. Good idea

GitHub - dextercd/git-empty-directory: demo git repo containing an empty directory

demo git repo containing an empty directory. Contribute to dextercd/git-empty-directory development by creating an account on GitHub.

GitHub