簡體   English   中英

將更改從master轉移到development分支(使用GIT)

[英]Move changes from master to develop branch (using GIT)

開發新功能或修復錯誤時,我使用GIT的方式是從master分支創建一個新分支進行處理,一旦完成該分支的開發,便將其合並回master分支。

現在,假設我有masterbug_fix_1feature_1feature_2分支。 Feature_1的開發工作被擱置一旁,因為Feature_2成為了優先事項。 bug_fix_1現在已修復,並重新合並到master中。 現在,feature_2分支也已完成並合並回master。 結果,我刪除了這兩個分支,現在剩下master和feature_1了。

如何將更改從bug_fix_1feature_2 (現在位於master分支)更改為feature_1分支?

您已經將bug_fix_1feature_2分支與master合並了,

那么您的主人就擁有了bug_fix_1和feature_2的所有更改

git checkout功能_1

git合並大師

像這樣:

 git checkout feature_1 git merge bug_fix_1 git merge feature_2 

還是我錯過了什么?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM