git: You can’t push to git://…

I cloned this repository using https originally. After making some modifications, I couldn’t push my changes with ssh.

 % git push
fatal: remote error: 
  You can't push to git://github.com/droberson/yararules.git
  Use https://github.com/droberson/yararules.git

This was an easy fix:

 git remote set-url origin git@github.com:/USER/REPO.git

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s