Question

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

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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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?