Skip to content

Commit a8bce24

Browse files
mydeaandreiborza
andauthored
docs: Add docs about resolving gitflow merge conflicts (getsentry#12936)
This adds docs about how to resolve gitflow merge conflicts. --------- Co-authored-by: Andrei <[email protected]>
1 parent 7adbec4 commit a8bce24

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/gitflow.md

+13
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,16 @@ We use [Gitflow](https://docs.github.com/en/get-started/quickstart/github-flow)
1818
While a release is pending, we may merge anything into develop, **except for changes to package.json files**. If we
1919
change the package.json files on develop, the gitflow PR master -> develop will have merge conflicts, because during the
2020
release the package.json files are updated on master.
21+
22+
## What to do if there is a merge conflict?
23+
24+
Although gitflow should help us to avoid merge conflicts, as mentioned above in "Important Caveats" it can still happen
25+
that you get a merge conflict when trying to merge master into develop after a successful release.
26+
27+
If this happen, you can resolve this as follows:
28+
29+
- Close the automated PR that was created by the gitflow automation
30+
- Create a new branch on top of `master` (e.g. `manual-develop-sync`)
31+
- Merge `develop` into this branch, with a merge commit (and fix any merge conflicts that come up)
32+
- Now create a PR against `develop` from your branch (e.g. `manual-develop-sync`)
33+
- Merge this PR with a merge commit

0 commit comments

Comments
 (0)