一,git更換遠(yuǎn)程庫
1,設(shè)置遠(yuǎn)程地址的文件在.git目錄下的config文件中
config配置文件
2,通過git命令行
(1)先刪除后添加
git remote rm origin
git remote add origin [url]
(2)修改
git remote origin set-url [url]
二, 然后git pull 結(jié)果報(bào)錯(cuò): ?fatal: refusing to merge unrelated histories...
解決:
git pull origin master --allow-unrelated-histories?