You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Qtest Launch中Git clone失败但本地终端可正常执行问题求助

解决Qtest本地环境执行git clone的报错问题

针对报错 error: cannot spawn sh: No such file or directory 的解决步骤:

  • 检查系统PATH环境变量,确保包含sh程序的所在路径:
    • Windows系统:确认Git安装目录下的bin文件夹(例如C:\Program Files\Git\bin)已加入PATH;重新安装Git时需勾选“Add Git to PATH”选项。
    • Linux/macOS系统:确保/bin或/usr/bin在PATH中,终端执行sh命令验证是否能正常启动。
  • 若sh确实缺失,Windows下可通过重装Git补充,Linux/macOS则安装bash或dash包(通常系统默认已包含)。

针对报错 fatal: could not read Username for 'https://github.com': No such file or directory 的解决步骤:

  • 配置全局Git用户信息:
    git config --global user.name "你的GitHub用户名"
    git config --global user.email "你的GitHub绑定邮箱"
    
  • 设置凭据管理器实现免密克隆:
    • Windows:git config --global credential.helper wincred
    • macOS:git config --global credential.helper osxkeychain
    • Linux:git config --global credential.helper store
  • 改用SSH方式克隆:生成SSH密钥并添加至GitHub账户,使用SSH仓库地址(格式为git@github.com:用户名/仓库名.git)执行克隆操作。

内容的提问来源于stack exchange,提问作者Saro

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.19 11:55:23