git 合并某个分支的某一次提交到当前分支
git remote add upstream git_url
git remote -v
git fetch upstream
git cherry-pick ea0d703710e659166819ed1bc62f386a3f70ceb9
git 合并commit
git rebase -i <base-commit-hash>
pick aaaaaaa Commit A
fixup bbbbbbb Commit B
fixup ccccccc Commit C
// 更改最新的提交信息
git commit --amend
git checkout -b temp-branch <基准提交>
git cherry-pick aaaaaaa
git cherry-pick ccccccc
git cherry-pick eeeeeee
git reset --soft <基准提交>
git commit -m "合并后的提交信息"
git cherry-pick bbbbbbb
git cherry-pick ddddddd
git branch -f original-branch
git checkout original-branch
git branch -D temp-branch
git cherry-pick abc123^..def456
这将应用从 abc123 之后(不包括 abc123)到 def456(包括 def456)之间的所有提交。
git cherry-pick --continue
git cherry-pick --skip
git cherry-pick --abort