Using Git in VS Code
Reference from VS Code official docs Using Version Control in VS Code.
- Install VS Code.
- Install Git.
- Open “Source Control”(Ctrl+Shift+G). Now you can use Git in VS Code.
Common Questions
Error dialog: Make sure you configure your “user.name” and “user.email” in git."
You can run below command to configure it.
$ git config --global user.email "you@example.com"
$ git config --global user.name "Your Name"

本文介绍了如何在 Visual Studio Code (VS Code) 中使用 Git。首先,需要安装 VS Code 和 Git,然后通过快捷键 Ctrl+Shift+G 打开源代码控制。遇到问题时,如遇到需要设置 'user.name' 和 'user.email' 的错误,可以通过运行特定命令来配置。对于不断出现的 Git 认证对话框,可以使用 Git 的凭证助手来缓存 GitHub 密码。
最低0.47元/天 解锁文章
3442

被折叠的 条评论
为什么被折叠?



