Recursively add the entire folder to a repository

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

    I just needed to do this, and I found that you can easily add files in subdirectories. You only need to be on the "top directory" of the repo, and then run something like:

    $ git add ./subdir/file_in_subdir.txt
    

提交回复
热议问题