首页 > 解决方案 > 为什么 RunCommand 或自定义脚本扩展无法识别术语 git?

问题描述

当我尝试使用运行命令或自定义脚本扩展将 git 中的 repo 克隆到 azure VM 时,我收到此错误“git:术语 'git' 不被识别为 cmdlet、函数、脚本文件或可操作的名称程序。” 但是当我从带有 RDP 的 PowerShell 运行 git clone 到 VM 时,它运行良好。

如何使用运行命令或自定义脚本扩展或任何其他可以使用代码的方式将存储库从 git 克隆到 Azure VM 中?

谢谢!

标签: gitazurevirtual-machinescript

解决方案


推荐阅读