搜尋

首頁  >  問答  >  主體

github - 關於 git remote origin 的問題

環境是 win7 64位

用git進任意clone下來的文件夾後輸入指令git remote -v後都有兩個remote,分別是originupstream

運行很多腳本時會報出以下錯誤

fatal: remote origin already exists.

網上說的解決方法是輸入指令git remote rm origin來刪除origin,但是我輸入指令後報出以下錯誤

error: Could not remove config section 'remote.origin'

現在不知道如何是好,希望大家幫助。

PHP中文网PHP中文网2848 天前618

全部回覆(1)我來回復

  • ringa_lee

    ringa_lee2017-04-22 09:01:50

    git clone .......... 執完 從遠程 拷備後 git pull origin master 執行這條指令,與遠端同步合併分支 之後再提交 應該沒有問題

    回覆
    0
  • 取消回覆