Recursively add the entire folder to a repository

后端 未结 15 1398
野的像风
野的像风 2020-11-30 16:23

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

15条回答
  •  感情败类
    2020-11-30 16:59

    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.

提交回复
热议问题