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
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 supporting https only and not other protocols.
Why does Git refuse to push, saying "everything up to date"?
git push with no additional arguments only pushes branches that exist in the remote already. If the remote repository is empty, nothing will be pushed. In this case, explicitly specify a branch to push, e.g. git push master.
Can I access my repository over git:// or ssh:// instead of https:// ?
In order to take advantage of the advanced scalability and load-balancing features of Google's production servers, we are only able to accept incoming HTTP connections. We have no plans to support protocols other than the Git Smart HTTP protocol introduced in v1.6.6.
We do support both anonymous (read-only) and authenticated (read/write) access over HTTPS.
The steps for you would be . Did you forget 1
git add <files>
git commit -m 'message'
git push origin master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With