當執(zhí)行git中的“git pull origin master –allow-unrelated-histories”命令時,會出現(xiàn)“ couldn’t find remote ref –allow-unrelated-histories”的錯誤,可以簡單理解為我們的遠程倉庫與本地倉庫的內容不對等造成的。
特別容易發(fā)生在 我們新建了一個文件夾,往git倉庫中上傳資料的ing況下,如下所示:
輸入如下命令即可解決:
git pull --rebase origin master
git push origin master文章來源:http://www.zghlxwxcb.cn/news/detail-511875.html
?文章來源地址http://www.zghlxwxcb.cn/news/detail-511875.html
到了這里,關于使用Git時 出現(xiàn)couldn‘t find remote ref-allow-unrelated-histories的解決辦法的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!