git push 返回错误 500(谷歌代码)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17844804/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 16:37:30  来源:igfitidea点击:

git push returns error 500 (Google Code)

gitgoogle-code

提问by Thomas O

I'm trying the following sequence of standard commands:

我正在尝试以下标准命令序列:

git clone https://code.google.com/p/steambmc/
cd steambmc
[made changes]
git commit -a
[added commit message]
git push

I've set up my username/password in .netrc.

我已经在.netrc.

When I try these, the first two succeed, but the last one appears to fail:

当我尝试这些时,前两个成功了,但最后一个似乎失败了:

fatal: unable to access 'https://code.google.com/p/steambmc/': The requested URL returned error: 500

I've also tried git://(which just hangs) and http://(which has the same error.)

我也试过git://(只是挂起)和http://(有同样的错误。)

gitversion is 1.8.3.4on Ubuntu Precise.

git版本1.8.3.4在 Ubuntu Precise 上。

回答by King

Edit .git\config, change the url from yourname@https://code.google.com/p/xyz/to https://code.google.com/p/xyz/. When you push to it, just input your username and password, now it works well.

编辑 .git\config,将 url 从 yourname@ https://code.google.com/p/xyz/更改为https://code.google.com/p/xyz/。当您推送到它时,只需输入您的用户名和密码,现在它运行良好。

回答by Scott Willeke

Double check your _netrc file or your authentication for the repo. I found if the auth isn't setup correctly Google seems to return 500.

仔细检查您的 _netrc 文件或您的 repo 身份验证。我发现如果身份验证设置不正确,Google 似乎会返回 500。