【问题标题】:An error was raised by libgit2. Category = Net (Error). Response status code does not indicate success: 404 (Not Found)libgit2 引发错误。类别 = 净(错误)。响应状态码不表示成功:404(未找到)
【发布时间】:2017-08-07 08:28:40
【问题描述】:

我在 GitHub 上使用 Visual Studio 2013 团队资源管理器。我可以克隆和拉取,但不能同步和推送。当我同步此错误时:

"An error was raised by libgit2. Category = Net (Error).
Response status code does not indicate success: 404 (Not Found)."

当我尝试从 Git bash 推送时,它说:

"remote: Repository not found.
fatal: repository 'https://github.com/example.git/' not found"

我在 StackOverflow 上查看了很多答案,但无法解决。

我尝试从控制面板的凭据管理器中删除 GitHub 凭据,但没有成功。

任何帮助将不胜感激。

【问题讨论】:

    标签: git bash visual-studio-2013 team-explorer


    【解决方案1】:

    您是否尝试过添加要推送的远程存储库?

    做一个git remote add origin git@github.com:account-name/repo-name.git。

    或者先git remote rm origin再添加。

    否则,请尝试在 url 中包含您的用户名和密码,如下所示:

    https://username:password@github.com/repo-name
    

    这似乎已经解决了类似错误here的问题。

    另外,请确保您对存储库具有写入权限 - 这也可能引发错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-02
      • 2019-02-16
      • 1970-01-01
      • 2018-02-18
      • 2020-07-09
      相关资源
      最近更新 更多