Question

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

Posted May 16, 2015 2.7k views
Git

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?

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.

×
1 answer

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?

Submit an Answer