有人将称为 Git 推力源测试的分支推向共享仓库 。 我可以看到有 git 分支 -r 的分支 。 我如何查看远程测试分支 ? 我试过 :
git 检出测试, 它不会给 git 检出源/ 测试提供任何结果 * (无分支)
有人将称为 Git 推力源测试的分支推向共享仓库 。 我可以看到有 git 分支 -r 的分支 。 我如何查看远程测试分支 ? 我试过 :
git 检出测试, 它不会给 git 检出源/ 测试提供任何结果 * (无分支)
当前回答
这将为未命名的远程来源( 文档) 提供宽度 :
$ git checkout -t remote_name/remote_branch
添加新的远程,您需要首先做以下操作:
$ git remote add remote_name location_of_remote
$ git fetch remote_name
第一次告诉遥控器的存在, 第二次得到承诺。
其他回答
似乎没有人提出最简单的方法(也许我太笨了,
git pull origin remoteBranchName
git switch remoteBranchName
同一个案例(在我最后一次拉拉请求后,在遥控器上创建了一个分支)为我工作。
i 使用以下命令:
git checkout --track origin/other_remote_branch
这将为未命名的远程来源( 文档) 提供宽度 :
$ git checkout -t remote_name/remote_branch
添加新的远程,您需要首先做以下操作:
$ git remote add remote_name location_of_remote
$ git fetch remote_name
第一次告诉遥控器的存在, 第二次得到承诺。
这些答案对我毫无用处。
git checkout -b feature/branch remotes/origin/feature/branch
要获得所有远程分支, 请使用这个 :
git fetch --all
然后检查到分支 :
git checkout test