Skip to content

Commit aa283a3

Browse files
authored
Update CONTRIBUTING.md (#2329)
1 parent 34ee566 commit aa283a3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,15 @@ on Git 2.17+ you can mass signoff using rebase:
243243
```
244244
git rebase --signoff origin/develop
245245
```
246+
247+
Merge Strategy
248+
==============
249+
250+
The preferred method for merging pull requests is squash merging to keep the
251+
commit history trim, but it is up to the discretion of the team member merging
252+
the change. When stacking pull requests, you may wish to do the following:
253+
254+
1. Branch from develop to your branch (branch1), push commits onto it and open a pull request
255+
2. Branch from your base branch (branch1) to your work branch (branch2), push commits and open a pull request configuring the base to be branch1, saying in the description that it is based on your other PR.
256+
3. Merge the first PR using a merge commit otherwise your stacked PR will need a rebase. Github will automatically adjust the base branch of your other PR to be develop.
257+

0 commit comments

Comments
 (0)