Reputation: 271614
$ 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.
Upvotes: 4
Views: 6141
Reputation: 2621
I've got the same problem and the reason was an added line in the github .gitignore
file that in my case doesn't tracked .exe
files.
Upvotes: 0
Reputation: 6016
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.
Upvotes: 3
Reputation: 1108
Does your folder have hidden files? This may cause the git process not to see the files, and treat the folder as though it were empty
Upvotes: 0
Reputation: 118448
By any chance, is the directory blank? You can't add directories to git.
Upvotes: 9