功能分支現在離原始開發分支太遠,無法合并回更改。我寧愿把這個分支作為進一步發展的新基地。
將此分支用作新開發分支的最佳方法是什么?由于沒有涉及其他開發人員,因此不應該有任何沖突。
uj5u.com熱心網友回復:
您可以洗掉現有的開發分支并從您的功能分支創建一個新的開發分支,然后開始將其用作開發分支。
一一執行以下命令,您將獲得與現有功能分支相同的新開發分支。
git checkout <feature_branch_name>
git branch -D <development_branch_name> // will delete development branch from local
git push origin :<development_branch_name> // will delete development branch from remote
git checkout -b <new_development_branch_name>
git push origin <new_development_branch_name>
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/431874.html
