File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed
Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -182,8 +182,34 @@ git push origin v{x.y.z}
182182``` sh
183183git checkout master
184184git merge origin/v{x.y}_patches
185- git push mainrepo origin
185+ git push origin master
186186```
187187
188188The message, when prompted, should be ` Merge v{x.y.z} ` .
189189The merge and push should not be forced.
190+
191+ ### Should the patch branch diverge too much from master:
192+
193+ ``` sh
194+ git checkout master
195+ git merge -s ours v{x.y}_patches
196+ git checkout --detach v{x.y}_patches
197+ git reset --soft master
198+ git checkout master
199+ git commit --amend -C HEAD
200+ git push origin master
201+ ```
202+
203+ This merges the patch branch onto master, discarding
204+ any changes from master and keeps changes from patches.
205+
206+ ## For major versions merge master back on dev:
207+
208+ ``` sh
209+ git checkout dev
210+ git merge master
211+ git push origin dev
212+ ```
213+
214+ This reunites the dev and master, making future
215+ merging easier.
You can’t perform that action at this time.
0 commit comments