问题描述:

远程GIT克隆到本地,发生下面错误:

Git failed with a fatal error.
unable to access 'https://git.hniot.com/xxx/xxx.git/': The requested URL returned error: 403

原因分析:

【翻译】:

Git 因致命错误而失败。
无法访问 'https://git.hniot.com/xxx/xxx.git/': 请求的URL返回错误:403

【原因】:
  没有权限从远程库克隆该项目。

解决方案:

添加有权限GIT用户

【操作步骤】:

  1. 打开控制面板,---->用户账户---->凭据管理器
    或者直接搜索管理Windows凭证

  2. 普通凭证---->添加普通凭证----> git用户
    添加Git用户

  3. 重新克隆 GIT 库,克隆成功

Logo

一站式 AI 云服务平台

更多推荐