本文翻译自:Github “fatal: remote origin already exists”
I am trying to follow along Michael Hartl's Rails tutorial but I've run across an error. 我想跟随Michael Hartl的Rails教程,但我遇到了一个错误。
I signed up on Github and issued a new SSH key and made a new repository. 我在Github上注册并发布了一个新的SSH密钥并创建了一个新的存储库。 But when I enter the next line into the terminal I get the following error: 但是当我进入终端的下一行时,我收到以下错误:
Parkers-MacBook-Pro:.ssh ppreyer$ git remote add origin git@github.com:ppreyer/first_app.git
fatal: remote origin already exists.
Just wondered if anybody else has run across this problem? 只是想知道是否有其他人遇到过这个问题?
#1楼
参考:https://stackoom.com/question/jkiR/Github-致命-远程起源已经存在
#2楼
TL;DR you should just update the existing remote: TL; DR你应该只更新现有的遥控器:
$ git remote set-