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/D
There are times that I want to include my web service source codes along with its client-side project. Both of them have a separate git repositories. I am actually used to add all files using the command:
git add -A
But for some reason, it only adds the folder. Later on I found out that the server files also have its .git folder in it so the command doesn't work.
tl;dr: Make sure there are no .git folder inside the folder you want to stage.