git vscode 命令
git command on vscode
我尝试在 vscode 终端 git init 上写入并出现此错误:
The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spellin
g of the name, or if a path was included, verify that the path is correct and try again.
在我的 cmd 上运行时。
我安装 git
并将路径正确放入环境变量中
我检查了 vscode 启用 git 的设置。
那么我应该怎么做才能在 vscode 终端上运行命令 git。
您似乎正在研究 Windows。
如果您在 Windows 工作,在 vscode 中执行的终端与 git 提供的终端不同,如何解释所描述的行为。
vscode 终端执行 power shell 终端,同时 git 提供的终端执行类似 bash 的终端(在 linux) 使用所有常用工具。
在 'vscode > settings > Features > Terminal' 下,您可以更改此行为
在命令面板 (Ctrl+Shift+P) 中键入:
创建新的集成终端
现在你必须改变终端(Powershell -> Git Bash)
通过单击集成终端右上角的选项卡(向下箭头)Window:
我尝试在 vscode 终端 git init 上写入并出现此错误:
The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spellin g of the name, or if a path was included, verify that the path is correct and try again.
在我的 cmd 上运行时。 我安装 git 并将路径正确放入环境变量中 我检查了 vscode 启用 git 的设置。 那么我应该怎么做才能在 vscode 终端上运行命令 git。
您似乎正在研究 Windows。
如果您在 Windows 工作,在 vscode 中执行的终端与 git 提供的终端不同,如何解释所描述的行为。
vscode 终端执行 power shell 终端,同时 git 提供的终端执行类似 bash 的终端(在 linux) 使用所有常用工具。
在 'vscode > settings > Features > Terminal' 下,您可以更改此行为
在命令面板 (Ctrl+Shift+P) 中键入:
创建新的集成终端
现在你必须改变终端(Powershell -> Git Bash)
通过单击集成终端右上角的选项卡(向下箭头)Window: