Skip to content

本地未与远程关联

shell
git branch --set-upstream-to=origin/main main

fatal: refusing to merge unrelated histories

shell
git pull origin main --allow-unrelated-histories // 允许合并没有共同历史的分支