我的本地 git 中有以下分支:
-master
-develop
-test
我正在使用幾個月前創建的測驗分支添加一個新功能。我需要使用開發分支更新其內容(替換所有內容)。
我怎樣才能做到這一點?
uj5u.com熱心網友回復:
去develop分行
git checkout develop
洗掉test分支
git branch -d test
創建一個名為的新分支 test
git checkout -b test
新分支test將包含開發分支的所有內容。
uj5u.com熱心網友回復:
一口氣,test從 where重新創建分支dev,并檢查它:
git checkout -B test develop
(-B選項的檔案)
uj5u.com熱心網友回復:
如果develop在前面test,你可以合并test到它
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/338498.html
標籤:混帐
上一篇:前端安全-是否可以限制訪問范圍?
