Skip to content

Commit a0f4847

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 70640dd commit a0f4847

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

CONTRIBUTING.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,34 @@ git push origin v{x.y.z}
182182
```sh
183183
git checkout master
184184
git merge origin/v{x.y}_patches
185-
git push mainrepo origin
185+
git push origin master
186186
```
187187

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

0 commit comments

Comments
 (0)