# Git 案例实战
# 拉取远程并覆盖本地
git fetch --all
git reset --hard origin/masters
# 合并两个仓库
git clone https://git.test1.tech/project/A.git
git checkout testA
git remote add project_B http://git.test2.com/project/B.git
git fetch project_B
git checkout -b test_B project_B/master
git checkout testA
git merge test_B
# 此时提示 fatal: 拒绝合并无关的历史
git merge test_B --allow-unrelated-histories