【问题标题】:Visual studio 2013 github sync error 403Visual Studio 2013 github同步错误403
【发布时间】:2015-02-09 22:01:21
【问题描述】:

我收到错误 403:

发生错误。详细消息:响应状态码不表示成功:403(禁止)。

当尝试使用 Visual Studio Team Explorer 推送或同步未同步的提交时。

例如,当使用命令行或 sourcetree 时,一切正常。有没有人遇到过这个错误并找到解决方法?

我没有使用 ssh。

谢谢!

【问题讨论】:

    标签: git github visual-studio-2013 sync


    【解决方案1】:

    在这里找到答案。从列表中删除了 github 帐户和下一个 Vs 要求凭据...

    https://stackoverflow.com/a/29401455/1319157

    【讨论】:

      【解决方案2】:

      TFS 2013 Git push VS 2017 Forbidden error-403

      unable to access. requested url returned error: 403

      我在尝试将本地 git 存储库推送到本地 TFS 2013 服务器时遇到此错误。我从 VS 2017 和命令行得到了同样的错误。

      在花了很多时间玩弄全局配置设置之后,我发现

      问题是由内部代理服务器引起的。

      从 Windows 凭据管理器中清除了 git 凭据(如 https://stackoverflow.com/a/29401455/1319157 中所述)。

      但问题仍然没有消失。所以我在 (Only use a proxy for certain git urls/domains?) 中提到的环境变量中添加了 NO_PROXY

      NO_PROXY  
      my_internal_tfs,localhost,127.0.0.1
      

      这就像一个魅力。确保在更改环境变量后关闭并重新打开 Visual Studio 或命令提示符。

      以下是我发现的一些关于 git 凭证管理器的有用链接。希望这可能对某人有所帮助。

      https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage
      https://github.com/Microsoft/Git-Credential-Manager-for-Windows
      https://github.com/Microsoft/Git-Credential-Manager-for-Windows/blob/master/Docs/Faq.md#q-i-thought-microsoft-was-maintaining-this-why-does-the-gcm-not-work-as-expected-with-tfs

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-06-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-04-28
        • 2016-07-09
        • 2014-01-09
        • 2014-11-15
        相关资源
        最近更新 更多