Skip to content

Commit 819c1bc

Browse files
karabowiChristianTackeGSI
authored andcommitted
docs(CONTRIBUTING): Add section to release process
Added section about complicated patch branch merging process. Added section about major version.
1 parent 94f53c5 commit 819c1bc

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,34 @@ git push origin v{x.y.z}
203203
```sh
204204
git checkout master
205205
git merge origin/v{x.y}_patches
206-
git push mainrepo origin
206+
git push origin master
207207
```
208208

209209
The message, when prompted, should be `Merge v{x.y.z}`.
210210
The 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.

0 commit comments

Comments
 (0)