1、本地分支关联远程分支 > git branch --set-upstream-to=origin/master master 2、两个不相关的仓库建立关联 > git pull --allow-unrelated-histories 3、END