I'm having trouble adding a folder and all of it's subdirectories to my git repository. I realized this is a very popular question after doing some googling and I've tried each suggestion with no luck, specifically the suggestion from the man page on git-add. I even tried
git add -A
git add Dir1/\*
git add .
while in the root of the repository. It will add everything. If you do
git add * it will only add the files
* points to. The single dot refers to the directory.
If your directory or file wasn't added to git index/repo after above command, remember to check if it's markded as ignored by git in .gitignore file.