git Visual Studio 2013 github 同步错误 403
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28420248/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual studio 2013 github sync error 403
提问by Erab BO
I'm getting an error 403:
我收到错误 403:
An error occurred. Detailed message: Response status code does not indicate success: 403 (Forbidden).
发生错误。详细信息:响应状态码不表示成功:403(禁止)。
when trying to push or sync Unsynced Commits using visual studio team explorer.
尝试使用 Visual Studio 团队资源管理器推送或同步未同步提交时。
When using the command line or sourcetree for example, everything is working fine. did anyone had this error before and find a way how to fix it?
例如,当使用命令行或 sourcetree 时,一切正常。有没有人以前遇到过这个错误并找到解决方法?
I'm not using ssh.
我没有使用 ssh。
Thanks!
谢谢!
采纳答案by Erab BO
Found the answer here. Deleted the github account from the list and next Vs asking for credentials...
在这里找到了答案。从列表中删除了 github 帐户,下一个 Vs 要求提供凭据...
回答by Ram
TFS 2013 Git push VS 2017 Forbidden error-403
TFS 2013 Git push VS 2017 Forbidden error-403
unable to access. requested url returned error: 403
I got this error while trying to push my local git repository to on-prem TFS 2013 server. I got same error from VS 2017 and command line.
我在尝试将本地 git 存储库推送到本地 TFS 2013 服务器时遇到此错误。我从 VS 2017 和命令行中得到了同样的错误。
After spending lot of time on playing around with global config settings, I figured out that the
在花了很多时间玩弄全局配置设置之后,我发现
issue is caused by internal proxy server.
问题是由内部代理服务器引起的。
Cleared git credentials from Windows Credentials Manager (as mentioned in https://stackoverflow.com/a/29401455/1319157).
从 Windows 凭据管理器清除 git 凭据(如https://stackoverflow.com/a/29401455/1319157 中所述)。
But problem still did not go away. So I added NO_PROXY to environment variables as mentioned in (Only use a proxy for certain git urls/domains?)
但问题仍然没有消失。因此,我将 NO_PROXY 添加到环境变量中,如(仅对某些 git urls/domains 使用代理?)
NO_PROXY
my_internal_tfs,localhost,127.0.0.1
This worked like a charm. make sure to close and re-open Visual studio or command prompt after changing environment variables.
这就像一个魅力。确保在更改环境变量后关闭并重新打开 Visual Studio 或命令提示符。
Below are some useful links I found about git credential manager. Hope this may be helpful for someone.
以下是我发现的有关 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
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#qi-thought-microsoft-was-maintaining-this-why-does-the-gcm-not-work-as-expected-与-tfs