Re: [Tiki-devel] Questions about cherry-picking
Gary Cunningham-Lee <gary_c-39LOpZwlz1/[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
On the other hand, I did the same process again and this time it failed: > remote: GitLab: Commit message contains the forbidden pattern 'Merge > branch '(master|\d\d*\.x)' of' > To gitlab.com:tikiwiki/tiki.git > ! [remote rejected] 23.x -> 23.x (pre-receive hook declined) > error: failed to push some refs to 'gitlab.com:tikiwiki/tiki.git' ¯\_(ツ)_/¯ -- Gary On 7/18/2021 8:47 PM, Gary Cunningham-Lee wrote: > Hi and thanks, Jonny, > > I've been using a shell for git so far, and haven't gotten up to speed > with git in PhpStorm, so after some searching I found that, in a shell > opened in the branch 23 directory, I could use "git cherry-pick > a1000185" and "git push origin/23.x". Pretty simple if it was the > right procedure, and seems to do the trick. > > -- Gary > > > On 7/18/2021 7:42 PM, Jonny Bradley via TikiWiki-devel wrote: >> Hi Gary >> >> Thanks, good question - i think we're aiming for always commit to >> master/trunk first and then cherrypick/backport to the branches you >> need it in, but this is all new so i guess we're making it up as we >> go. As we switch sites to 23.x and uncover bugs it's often easiest to >> fix and test them in 23.x and then cherrypick to master, as if the >> fix needs fine tuning the work soon amplifies if you have to test and >> work on more than one branch... >> >> How do other projects do this? >> >> At least with git now we can feasibly compare one branch to another >> and check everything's that in stable is also in master, i wonder if >> that could be automated somehow? (in the CI) >> >> jonny >> >> p.s. to answer the question, i do this in phpstorm and there's a >> little cherry icon on the git log panel which does it for me 🍒 :p >> >> >>> On 18 Jul 2021, at 10:49, Gary Cunningham-Lee >>> <[email protected]> wrote: >>> >>> Hi, >>> >>> I tried to do a cherry pick for the first time and it didn't work, >>> so I wanted to get info on how to do it. What I did was make a push >>> to master and then at Gitlab on that commit's page, in the "Options" >>> dropdown, I selected "Cherry pick", and then in the "Pick into >>> branch" selector I chose "23.x". Should this method work, or is >>> there a better way? >>> >>> Ah, should I have committed to branch23 first and then cherry-picked >>> to master? (Sorry, seems like SVN deja vu all over again but once I >>> get it down, I'll try to stick with it. ;-) ) If I did get the >>> cherry-pick direction wrong, should I make the same change in >>> branch23 to get things in sync, or is there a better way to do that? >>> >>> Thanks for any help on this. >>> >>> -- Gary >>> >>> >>> >>> _______________________________________________ >>> TikiWiki-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel >>> >> >> >> _______________________________________________ >> TikiWiki-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > > > _______________________________________________ > TikiWiki-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel