git - How to reset commit from another dev but keeping mine's? -


i have list of commits:

enter image description here

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.

  1. checkout new branch.
  2. reset last commit want (which commit before 0e4e)
  3. on new branch, run git cherry-pick 54d8c0a2, fix conflicts, , run git cherry-pick d108639e.

this leave branch <commit before 0e4e> - 54d8c0a2 - d108639e


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -