![](/img/trans.png)
[英]“This branch is 1 commit ahead, 1 commit behind master” in Github while using “A successful Git branching model”
[英]Merge a commit from Develop to Master branch in the “successful git branching model”
在我的項目中,我們使用了成功的git分支模型 。 我已經向Develop分支提交了一個錯誤修復程序,現在我想將其修復到Master分支中。 下次我們從開發合並到Master時,如何做到這一點而又不會引起沖突?
只需選擇您的承諾即可。 在master
,運行git cherry-pick <commit-hash-id>
。 <commit-hash-id>
在存儲庫中是唯一的,因此,提交在不同的分支上無關緊要。
這不會造成沖突,因為git足夠聰明,可以理解已經執行了提交。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.