git - How to reset commit from another dev but keeping mine's? -
i have list of commits:
the first 2 commits pretty , works properly. need remove 3 commits below without affecting work(first 2 commits).
suggestions?
since commits want newer, can't checkout commit because previous commits there. suggest doing following.
- checkout new branch.
- reset last commit want (which commit before
0e4e
) - on new branch, run
git cherry-pick 54d8c0a2
, fix conflicts, , rungit cherry-pick d108639e
.
this leave branch <commit before 0e4e> - 54d8c0a2 - d108639e
Comments
Post a Comment