git - Recursively add the entire folder to a repository -


i trying add branch master branch on github , push folder onto branch.

the folder structure of branch looks - socialapp/sourcecode/devtrunk/socialapp , source code files in last folder.

i using git following commands:

git add * git commit -m message git push 

this pushing first folder "socialapp" onto github , ignoring folder sourcecode inside folder. how fix this?

check .gitignore file, if subdirectory ignored.

then try again

git add --all git commit -am "<commit message>" git push 

Comments