Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
结帐到所需的分支后:
git checkout feature/myBranch
我想将此分支中包含的项目拉到我的本地存储库中,请问我该怎么做。
您通过将远程存储库添加为远程并调用来加载远程存储库的内容git fetch。这就是所有需要做的事情。之后,您的本地存储库中已经有了更改,只是没有指向它们的本地分支(但有一个远程分支,如origin/branch)。
git fetch
origin/branch
当您可以签出分支时,您的本地存储库中已经拥有所有内容。