Git 提示fatal: remote origin already exists 錯誤解決辦法

原文出處:http://blog.csdn.net/top_code/article/details/50381432

origin already exists. 

這裏寫圖片描述

最後找到解決辦法如下: 
1、先刪除遠程 Git 倉庫

$ git remote rm origin

2、再添加遠程 Git 倉庫

$ git remote add origin [email protected]:FBing/Java-code-generator

如果執行 git remote rm origin 報錯的話,我們可以手動修改gitconfig文件的內容

$ vi .git/config

這裏寫圖片描述

把 [remote “origin”] 那一行刪掉就好了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章