Ashish Agarwal Ashish Agarwal - 1 year ago 239
Git Question

Git - recursively add the entire folder

I am trying to add a branch to the master branch on github and push a folder onto that branch

The folder structure of the branch looks like -
SocialApp/SourceCode/DevTrunk/SocialApp and all the source code files are in the last folder

I am using the git commands -

git add *
git commit -m with the message
git push

This is pushing only the first folder "SocialApp" onto github and ignoring the folder SourceCode that is inside the folder. How do I fix this ?

Answer Source

check the .gitignore file, if the subdirectory is ignored.

then try again

git add --all
git commit -am "<commit message>"
git push
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download