Question

I am trying to push some code into a new, fresh repo over at github. But I am getting the error below. I have done nothing strange, I always do the same steps, but this time, I see the error. I SO'd the error but none of the fixes work.

http://i.imgur.com/gGlLSeu.png

The git remote -v command gives the following:

origin
upstream

How can I fix it?

Was it helpful?

Solution

This would happen if you accidentally put remote configurations in the system-level git config. (I've seen this happen several times)

Run git config --system --edit and delete or comment out any [remote ] sections.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top