-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
How to backport a change
Clemens Brunner edited this page May 17, 2022
·
4 revisions
- Squash and merge the PR on GitHub
- Update local
main:git fetch upstreamfollowed bygit rebase upstream/main - Locally check out
maint/1.0up to date and tracking upstream branch:git checkout -t upstream/maint/0.22 - Cherry pick the squashed commit; if it is the latest commit on
mainthis would begit cherry-pick main -
git mergetoolto deal with the deleted file and any conflicts (usually just means hit "d" to deletelatest.incthat doesn't exist onmaint/1.0) - Manually copy-paste the change log line to
1.0.inc(make a new section header for the next bugfix release if necessary) git add doc/changes/1.0.incgit cherry-pick --continue- Accept the log message
-
git push(or if you are not comfortable pushing directly toupstream, consider making a PR instead) - Done – the message box on GitHub regarding changes to the
maint/1.0branch will disappear after a while