如何在 vscode 中执行 git fetch? [英] How to do a git fetch in vscode?
问题描述
我没有看到在 vscode 源代码控制选项卡中执行 git fetch 的选项.
I do not see an option to do a git fetch inside vscode Source Control tab.
如何检查我拉取并合并到本地源代码中的源远程代码?
How can I check what origin remote codes am I pulling and merging into my local source codes?
推荐答案
VScode 有一个设置git.autofetch",默认情况下启用为 true.这意味着当您从 ... 菜单执行 git pull 时,将在 pull 之前运行一次提取.如果您将 git.autofetch 设置为 false,则下拉列表中没有明确的命令可以为您执行提取操作.您必须手动输入.
VScode has a setting "git.autofetch" that is enabled to be true by default. This means when you do a git pull from the ... menu, a fetch will be ran prior to the pull. If you set git.autofetch to false, there is no explicit command from the dropdown that will do a fetch for you. You would have to type it in manually.
这篇关于如何在 vscode 中执行 git fetch?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!