📌  相关文章
📜  合并来自不同存储库的两个分支 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:14.108000             🧑  作者: Mango

代码示例1
git remote add  
git fetch        
# check to see whether remote is available with 
git remote -v
git checkout -b  
# move all the files into a subdirectory so there aren't any conflicts with names (git mv)
git commit -m "moved"
git checkout master
git merge  --allow-unrelated-histories
# cleanup everything with: 
git remote rm 
git branch -d 
# check to see whether everything is correct with: 
git remote -v
git branch -a -v
git status
git push