摘樱桃从另一个分支的少量提交

摘樱桃从另一个分支的少量提交

问题描述:

我有一个场景,在该场景中,我不想选择一个特定的提交,但是要从远程进行一系列的git提交. 我可以使用硬选项强制拉动,但是那将获得所有提交,包括来自远程的最新更改. 请提出建议,我该如何从远程获取精选的提交范围.

I have a scenario where in i dont want to cherry pick a specific commit but a range of git commits from remote. I can do force pull with hard option but that will get all the commits including latest changes from remote. Please suggest, how can i get a pick range of commits from remote.

例如,这就是我要尝试的地方.

For instance, this is what i am trying my head at.

git checkout -b newbranch 62ecb3

git checkout -b newbranch 62ecb3

git rebase-到master 76cada,56qwqw,46erer等

git rebase --onto master 76cada, 56qwqw, 46erer, etc

使用
git cherry-pick 76cada 56qwqw 46erer