在VS Code中,我无法安装GitHub扩展。

huangapple go评论69阅读模式
英文:

In VS Code, I can't install GitHub extension

问题

如何在VS Code中安装GitHub?

一开始,我以为GitHub已经集成在VS Code中。
但是,当我在“cmd”中输入git命令时,没有输出。

我想知道如何在VS Code中使用git命令。

英文:

enter image description here

how can i install git hub in vs code?

At First, I thought Git hub is integrated in VS Code.
But, When i input git command in 'cmd' there's no output.

I want to know how i can use git command in VS code.

答案1

得分: 1

以下是翻译好的部分:

安装 Git:

1: 如果您尚未在 Windows 系统上安装 Git,可以从官方网站下载 Git 安装程序:https://git-scm.com/downloads

2: 在 Git 安装过程中,您会看到一个名为“Adjusting your PATH environment”的选项。选择选项“Git from the command line and also from 3rd-party software”。这将确保在安装过程中将 Git 添加到 $PATH 变量中。

3: 完成安装过程。

验证 Git 安装:

打开新的命令提示符或终端窗口。键入 git --version 然后按 Enter 键。如果 Git 已正确添加到 $PATH 变量中,您应该看到安装在您系统上的 Git 版本。

安装扩展:

从 VS Code 内或从市场中下载 GitHub Pull Requests and Issues 扩展。

然后,您只需要打开一个 Git 项目文件夹,然后菜单将弹出。

英文:

There are 2 things you need to do before using Git in vscode

Install Git:

1: If you haven't installed Git on your Windows system, you can download the Git installer from the official website: https://git-scm.com/downloads

2: During the Git installation process, you'll come across an option titled "Adjusting your PATH environment."
Choose the option "Git from the command line and also from 3rd-party software." This will ensure that Git is added to the $PATH variable during installation.

3: Complete the installation process.

Verify Git installation:

Open a new command prompt or terminal window. Type git --version and press Enter. If Git is properly added to the $PATH variable, you should see the version of Git installed on your system.

installing Extension:

Install GitHub Pull Requests and Issues from within VS Code or download it from the marketplace.

and then all you need to do is open a git projects folder and then the menu will pop up

huangapple
  • 本文由 发表于 2023年7月23日 22:16:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76748700.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定