Brad Thrumble Brad Thrumble - 1 year ago 661
Git Question

Git - fatal: remote origin already exists

I can not create origin remotely with


$ git remote add origin
fatal: remote origin already exists.

To solve the error, I have tried this:

$ git remote -v origin
$ git remote -v show origin

It is not uploading the files from my local repository to the remote:

$ git push -u origin master
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Does each repository have its own origin?

Solution: I was using the Powershell that came with Github or Git Shell as it is also called to do my tutorial, once I switched to Git Bash it worked fine.

Answer Source

A bit easier:

git remote set-url origin

That will replace the current origin with a new one.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download