Recursively add the entire folder to a repository

后端 未结 15 1371
野的像风
野的像风 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:41

    Both "git add *" and "git add SocialApp" called from top directory should add recursively all directories.

    Probably you have no files in SocialApp/SourceCode/DevTrunk/SocialApp and this is the reason.

    Try to call "touch SocialApp/SourceCode/DevTrunk/SocialApp/.temporary" (and check .gitignore) and then try git add again.

提交回复
热议问题