How to Fix 'fatal: Remote Origin Already Exists' Git Error?

One of the most common Git errors when working with remote-tracking branches is the error message "fatal: remote origin already exists". This error can occur if you want to clone from another repository but Git cannot resolve the dangling commits or missing remote origin. 

fatal: remote origin already exists.

By Dull DotterelDull Dotterel on May 28, 2020
git remote rm origin

Add Comment

17

fatal: remote origin already exists.

By ElijahElijah on Apr 12, 2021
git remote set-url origin https://github.com/your/repository

Add Comment

1

fatal: remote origin already exists.

By Crazy CamelCrazy Camel on May 03, 2020
git remote set-url origin https://github.com/your/repository

Add Comment

1

fatal: remote origin already exists.

By Strange StarlingStrange Starling on Nov 09, 2020
git remote rm origin
git remote add origin [email protected]:username/myapp.git

Source: stackoverflow.com

Add Comment

1

fatal: remote origin already exists.

By Disgusted DugongDisgusted Dugong on Apr 13, 2020
$ git remote set-url origin [email protected]:ppreyer/first_app.git

Source: stackoverflow.com

Add Comment

1

There are steps that you need to follow to fix this issue.

Shell/Bash answers related to "fatal: remote origin already exists"

View All Shell/Bash queries

Shell/Bash queries related to "fatal: remote origin already exists"

fatal: remote origin already exists how to change git remote origin A branch named 'master' already exists. bash How To Transfer Files From a Remote Server to another Remote Server Running a local script on a remote machine (or remote on local) fatal: unable to auto-detect email address (got 'root@LaptopName.(none)') FATAL module ucvideo not found Git remove origin delete git origin how to git pull origin master update local repository from origin master and reabse head detached at origin/master how to reset local master to origin master Git push set upstream origin git reset hard origin how to change origin in git git push origin master port already in use node js Port 3000 is already in use, but when I try to kill nothing is found delete local branches not on remote how to see remote branch git push all branches to remote git remote list git replace local branch with remote delete remote branch heroku git remote oevrride localwith remote branch git checkout remote branch git delete remote branch git push new repo to remote git command to refresh remote branches jupyter on remote server git how to work with remote branch and fork rename remote branch in git how do i delete remote branch remove folders from remote git remote: Permission to asfand005/test.git denied to asfand87. how to scp from remote machine to local machine copy ssh keys to remote server windows 10 openSSH deleting a remote branch mongodb copy database from remote to local Updates were rejected because a pushed branch tip is behind its remote mariadb galera cluster exists on first sync mkdir create if not exists

Browse Other Code Languages

CodeProZone