Skip to content

Commit

Permalink
docs(CONTRIBUTING): Add section to release process
Browse files Browse the repository at this point in the history
Added section about complicated patch branch merging process.
Added section about major version.
  • Loading branch information
karabowi authored and ChristianTackeGSI committed Nov 15, 2024
1 parent 94f53c5 commit 819c1bc
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,34 @@ git push origin v{x.y.z}
```sh
git checkout master
git merge origin/v{x.y}_patches
git push mainrepo origin
git push origin master
```

The message, when prompted, should be `Merge v{x.y.z}`.
The merge and push should not be forced.

### Should the patch branch diverge too much from master:

```sh
git checkout master
git merge -s ours v{x.y}_patches
git checkout --detach v{x.y}_patches
git reset --soft master
git checkout master
git commit --amend -C HEAD
git push origin master
```

This merges the patch branch onto master, discarding
any changes from master and keeps changes from patches.

## For major versions merge master back on dev:

```sh
git checkout dev
git merge master
git push origin dev
```

This reunites the dev and master, making future
merging easier.

0 comments on commit 819c1bc

Please sign in to comment.