Git本地倉庫與遠程github同步的時候提示fatal: remote origin already exists 錯誤解決辦法

Git本地倉庫與遠程github同步的時候提示fatal: remote origin already exists 錯誤解決辦法git

一、git在本地的電腦建立了倉庫,要遠程同步github的倉庫。使用命令:$ git remote add origin https://github.com/yuanchaoyong/wxtest.git

報以下錯誤:github

能夠知道其實本地已經同步過一次的github版本庫了。須要把原先的刪除spa

二、先刪除遠程 Git 倉庫3d

$ git remote rm originblog

三、再添加遠程 Git 倉庫,成功rem

相關文章
相關標籤/搜索