[core-workflow] instructions for cherrypicking a change from master
Chris Angelico
rosuav at gmail.com
Thu Oct 6 22:28:15 EDT 2016
On Fri, Oct 7, 2016 at 1:26 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On 7 October 2016 at 11:55, Chris Angelico <rosuav at gmail.com> wrote:
>> If you want to, you can 'git cherry-pick -x 142a57', which will add a
>> linking comment to the commit that it creates, saying where it came
>> from.
>
> Recommending the use of referenced cherry picks sounds like a good idea to me.
>
> It may also be worth linking to
> https://www.python.org/dev/peps/pep-0512/#commit-multi-release-changes-in-bugfix-branch-first
> from this section of the devguide to help explain why we recommend
> using the "work on master, cherry pick to maintenance branches"
> approach.
git checkout master
git cherry-pick footnote
git show
Check out the branch you want to cherry-pick into.
$ git checkout 3.6
Grab the commit you want
$ git cherry-pick -x 142a57
Make sure it looks good, and then push.
:)
ChrisA
More information about the core-workflow
mailing list