Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
对已经存在的commit 进行 再次提交 蓝后和平时的提交一样,有冲突解决冲突,没冲突合并成功 使用场景有: 在A分支完成了a功能,此时需要和B分支合并,把a功能搬到B分支 则找出A分支关于a功能的commit,向B分支提交
git cherry-pick <commit id>
可以不连续的pick commit 比如 略过合并代码的commit,只提交业务代码commit
可以结合gir rebase/git reset使用 eg. A->B->C->D 只想要A和D,不要B和C的提交 即git reset到A版本,然后git cherry-pickD版本,然后提交,即可跳过B、C commit
gir rebase
git reset
git cherry-pick