Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的树:
C (featureB) | | A - H (master) | | |- H - D (featureA)
我想让它变成
C - D (featureB) | | A - H (master) | | |- H - D (featureA)
我如何在 git 中做到这一点?
你可以cherry-pickD 到featureB:
cherry-pick
featureB
$ git checkout featureB $ git cherry-pick D