By default Git ignores empty directories, so you won't be able see them in git status or add with git add ....
To vercome the problem - add empty file in each dir that you want to keep in the repo.
Here's the oneliner:
find -type d -empty ! -path '*.git/*' -exec touch "{}/.gitkeep \;It's doing next:
- Under curerent dir finds all the directories that are empty and don't belong to Git itself
- Creates an empty
.gitkeepfile in each of them
After that your git add command will work.