-
Notifications
You must be signed in to change notification settings - Fork 1.4k
How to backport a change
Clemens Brunner edited this page Nov 14, 2020
·
4 revisions
- Squash and merge the PR on GitHub
- Update local
master
:git fetch upstream
followed bygit rebase upstream/master
- Locally check out
maint/0.21
up to date and tracking upstream branch:git checkout -t upstream/maint/0.21
- Cherry pick the squashed commit; if it is the latest commit on
master
this would begit cherry-pick master
-
git mergetool
to deal with the deleted file and any conflicts (usually just means hit "d" to deletelatest.inc
that doesn't exist onmaint/0.21
) - Manually copy-paste the change log line to
0.21.inc
git add doc/changes/0.21.inc
git cherry pick --continue
- Accept the log message
git push
- Done &ndash the message box on GitHub regarding changes to the
maint/0.21
branch will disappear after a while