[英]How to “link” two branches of the same code base that were created separately (TFVC -> GIT migration)?
您可以使用git rebase
來“鏈接”分支,正如max630所評論的那樣,將藍色分支放置在所需的任何主提交之上。
請嘗試以下命令:
git checkout -b temp <commit on red>
git rebase temp blue
git push -f blue
您還可以引用此線程: 我可以安全地將一個分支重新建立為另一個分支,然后再掌握嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.