這與發佈的問題並不相似,因爲我已經完成了我的研究。git刪除回購後的致命錯誤
我想拉GitHub上創建一個新的回購,並得到該錯誤消息:
$ git pull https://github.com/{my repo}.git
From https://github.com/{my repo}
* branch HEAD -> FETCH_HEAD
fatal: refusing to merge unrelated histories
我已經試過這樣:
$ git merge origin/master --allow-unrelated-histories
merge: origin/master - not something we can merge
也這樣:
$ git pull --allow-unrelated-histories origin master
remote: Repository not found.
fatal: repository 'https://github.com/{my user name}/20170802.git/' not found
和這個:
$ git fetch
remote: Repository not found.
fatal: repository 'https://github.com/{my uer name}/20170802.git/' not found
這種情況發生在我刪除了不讓我推送電影文件(大於50mb)的回購之後。當github不允許我上傳文件時:我重置了舞臺,並刪除了電影文件,並在我的計算機上的項目文件夾中粘貼了一個新文件,並嘗試再次推送,但gitbash一直顯示我正在嘗試推送舊電影文件。 我正在使用gitbash for windows 10.
你想克隆或拉?您似乎也錯過了第一個代碼段中的URL中的用戶名。 – TW80000