Git Push 对 Google Code 仓库作为远程仓库不执行任何操作
我在 Google Code 上有一个 git 项目。 https://code.google.com/p/jawabot/
我对 <代码>主分支。它们很好,可以在 git log 中看到。 现在,当我执行git push
时,我得到“
$ git push
Password:
Everything up-to-date
有时:
$ git push
Password:
error: The requested URL returned error: 403 while accessing https://[email protected]/p/jawabot//info/refs
fatal: HTTP request failed
更新:
$ git remote -v
origin https://[email protected]/p/jawabot/ (fetch)
origin https://[email protected]/p/jawabot/ (push)
出了什么问题?我还是Google?(我是git新手。)
如果有人如此友善并且尝试在那里推送一些东西,我会很高兴(我假设我能够恢复这样的更改)
更新:
根据答案,我尝试了(git:// url猜测):
$ git remote add gc [email protected]:jawabot/jawabot.git
$ git remote -v
gc [email protected]:jawabot/jawabot.git (fetch)
gc [email protected]:jawabot/jawabot.git (push)
origin https://[email protected]/p/jawabot/ (fetch)
origin https://[email protected]/p/jawabot/ (push)
ondra@ondra-doma:/mnt/ssd1/_projekty/JawaBot-2.0-git$ git push gc
ssh: connect to host code.google.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly
I have a git project at Google Code.
https://code.google.com/p/jawabot/
I did some commits to master
branch. They're fine, visible in git log
.
Now when I do git push
, I get "
$ git push
Password:
Everything up-to-date
And sometimes:
$ git push
Password:
error: The requested URL returned error: 403 while accessing https://[email protected]/p/jawabot//info/refs
fatal: HTTP request failed
Update:
$ git remote -v
origin https://[email protected]/p/jawabot/ (fetch)
origin https://[email protected]/p/jawabot/ (push)
What's wrong? Me or Google? (I'm git newbie.)
If someone was so kind and tried to push something there, I'd be glad (I assume I will be able to revert such change).
Update:
Based on answers, I tried (git:// url guessed):
$ git remote add gc [email protected]:jawabot/jawabot.git
$ git remote -v
gc [email protected]:jawabot/jawabot.git (fetch)
gc [email protected]:jawabot/jawabot.git (push)
origin https://[email protected]/p/jawabot/ (fetch)
origin https://[email protected]/p/jawabot/ (push)
ondra@ondra-doma:/mnt/ssd1/_projekty/JawaBot-2.0-git$ git push gc
ssh: connect to host code.google.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您尝试执行的操作已在常见问题解答中得到解答:http://code.google.com /p/support/wiki/GitFAQ
既说明了为什么仅使用
git Push
不起作用,也说明了仅支持https
而不是其他协议。What you are trying to do is answered in the FAQ: http://code.google.com/p/support/wiki/GitFAQ
Both why just a
git push
would not work and also on supportinghttps
only and not other protocols.您的步骤是。你忘记了吗1
The steps for you would be . Did you forget 1
已解决 - 缺少分支规范...
Solved - It was missing the branch specification...
您可能想要尝试做的不是使用 https 地址,而是使用 git 协议,例如 git://git.foo。
Potentially what you might want to try doing is instead of using the https address, to use the git protocol, like git://git.foo.