解决git中fatal: refusing to merge unrelated histories

主要在 pull push merge

refusing to merge unrelated histories
```

###  加上 pull   merge
```
git pull origin master --allow-unrelated-histories


git merge main --allow-unrelated-histories
```
posted @ 2024-02-01 11:59  vx_guanchaoguo0  阅读(9)  评论(0编辑  收藏  举报