简体   繁体   English

在 Visual Studio Code 中设置 github.com 存储库

[英]Setting up a github.com repository in Visual Studio Code

I couldn't find a concise step-by-step tutorial to integrate Visual Studio Code with github.com and I'm struggling with this.我找不到将 Visual Studio Code 与 github.com 集成的简明分步教程,我正在为此苦苦挣扎。

This is what I did:这就是我所做的:

  • I installed Visual Studio Code (VSC)我安装了 Visual Studio Code (VSC)
  • Within VSC I installed two extensions: GitHub 0.30.3 and GitHub Pull Requests 0.13.0在 VSC 中,我安装了两个扩展:GitHub 0.30.3 和 GitHub Pull Requests 0.13.0
  • I tried to configure the github.com remote site in VSC, all I could find here is that there's a githubPullRequests.hosts entry, but no place to put a user/password.我试图在 VSC 中配置 github.com 远程站点,我在这里能找到的是有一个githubPullRequests.hosts条目,但没有地方放置用户/密码。

Can the complete setup happen inside VSC or there's something that needs to be done with a git command?完整的设置可以在 VSC 内部进行还是需要使用git命令来完成? How to make VSC aware of a repository in github.com ?如何让 VSC 知道 github.com 中的存储库?

This might help.这可能会有所帮助。 From add remote repository from github (v1.46 release notes) :github 添加远程存储库(v1.46 发行说明)

You can now easily add a GitHub repository as a remote to your local repositories using the Git: Add Remote... command.您现在可以使用Git: Add Remote...命令轻松地将 GitHub 存储库作为远程存储库Git: Add Remote...到本地存储库。

添加远程github仓库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM