(git) fatal: remote origin already exists.

Problem Description

$ git remote add origin https://github.com/你的账号/你的项目名称

When using the above statement will be submitted to the staging area of the project to a remote repository, if accidentally entered twice,
the second time will be given:

fatal: remote origin already exists

Solution

Delete the contents of the first statement is executed, resubmit

$ git remote rm origin
$ git remote add origin https://github.com/你的账号/你的项目名称
$ git push -u origin master
Published 11 original articles · won praise 0 · Views 455

Guess you like

Origin blog.csdn.net/qq_36323561/article/details/104830012