$ git add . ; git add *; git status
# On branch master
nothing to commit (working directory clean)
My folder is in there, but I can't add it.
By any chance, is the directory blank? You can't add directories to git.
I know this question is quite old now and the answer has been accepted but I had a similar problem where I couldn't add a directory.
In my case the problem was that I didn't have permission to access the directory. I changed the permissions and then I was able to add it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With