Recursively add the entire folder to a repository

后端 未结 15 1350
野的像风
野的像风 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 17:04

    I ran into this problem that cost me a little time, then remembered that git won't store empty folders. Remember that if you have a folder tree you want stored, put a file in at least the deepest folder of that tree, something like a file called ".gitkeep", just to affect storage by git.

提交回复
热议问题