File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,8 +203,34 @@ git push origin v{x.y.z}
203203``` sh
204204git checkout master
205205git merge origin/v{x.y}_patches
206- git push mainrepo origin
206+ git push origin master
207207```
208208
209209The message, when prompted, should be ` Merge v{x.y.z} ` .
210210The merge and push should not be forced.
211+
212+ ### Should the patch branch diverge too much from master:
213+
214+ ``` sh
215+ git checkout master
216+ git merge -s ours v{x.y}_patches
217+ git checkout --detach v{x.y}_patches
218+ git reset --soft master
219+ git checkout master
220+ git commit --amend -C HEAD
221+ git push origin master
222+ ```
223+
224+ This merges the patch branch onto master, discarding
225+ any changes from master and keeps changes from patches.
226+
227+ ## For major versions merge master back on dev:
228+
229+ ``` sh
230+ git checkout dev
231+ git merge master
232+ git push origin dev
233+ ```
234+
235+ This reunites the dev and master, making future
236+ merging easier.
You can’t perform that action at this time.
0 commit comments