git 如何在 VS Code 中将特定远程拉入当前分支
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42142490/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to pull specific remote into current branch in VS Code
提问by stephen776
Using built in Git in Visual Studio Code, I do not see a way to pull a specified remote branch into my current branch. Can I do this?
在 Visual Studio Code 中使用内置 Git,我没有看到将指定的远程分支拉入当前分支的方法。我可以这样做吗?
Example: I am working on branch myBranch
and changes were merged into master
on the remote. I want to pull the changes from master
into my current myBranch
示例:我在分支上工作myBranch
,更改已合并到master
远程。我想将更改从master
我的当前myBranch
采纳答案by Gama11
I don't think there's currently a built-in way to do this, but I've found an extension for it: Git: Pull - Remote/Branch Specified
我认为目前没有内置的方法可以做到这一点,但我找到了它的扩展:Git: Pull - Remote/Branch Specified
It adds a command with the same name, which when invoked, prompts you for the name of the remote and remote branch to pull from:
它添加了一个具有相同名称的命令,当调用该命令时,会提示您输入要从中提取的远程和远程分支的名称: