Report this

What is the reason for this report?

Can't connect to my DO git repo with git push command.

Posted on May 16, 2015

Hi everyone! Today I findout that my ‘git push remote master’ command from Cloud9 IDE can’t connect to Digital Ocean anymore. SSH access still works fine, ‘git push’ to BitBucket - also ok. One week ago everything worked fine and I didn’t chaged anything! Any idea why that culd happened?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

I would suggest removing and re-adding the remote through Cloud9. a git push should just be using your SSH, so if that works, it’s hard to say why it suddenly stopped working.

You can remove the remote with

git remote rm origin
git remote add origin user@droplet.ip:/path/to/repo

The sections marked in red should be changed to whatever you want to call your remote repo origin and the user, droplet ip(or hostname) and the path to the repository. Can you give this a try?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.