Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't push branch to github "Use [email protected]:Paratron/spacebattles.git"

I have a working branch in my Mac names database and I would like to push this branch to GitHub and have tried to do this by running:

git push -u origin database

And get the following error message:

You can't push to git://github.com/Paratron/spacebattles.git
Use [email protected]:Paratron/spacebattles.git

Are there known issues that could be the cause for this? Are there any likely errors I could be doing that results in this error?

like image 782
Christian Piazzi Avatar asked Dec 21 '22 21:12

Christian Piazzi


1 Answers

Like it says, you can't push to git://github.com/Paratron/spacebattles.git (because it's a read-only URL). Try this:

git remote set-url origin [email protected]:Paratron/spacebattles.git
git push -u origin database

If you haven't ever used git in this way, you need to set it up to work with GitHub first: http://help.github.com/mac-set-up-git/

Also, are you Paratron? If not, you'll need to fork his repository first: http://help.github.com/fork-a-repo/. Then you'll need to use your username instead ([email protected]:YOUR_USERNAME/spacebattles.git).

like image 139
We Are All Monica Avatar answered Feb 01 '23 23:02

We Are All Monica