Git: remove earlier commit but keep recent changes -


i got commits in repository:

like:

a - added feature b - removed feature b c - redesigned feature c d - added feature d e - added feature d 

where e recent commit made. want rid of changes made feature c want keep changes added d , e.

i hope can me.

thank you

if want "get rid of changes" (as specified in question body) opposed "removing commit" (as specified in title), easy option adding new commit, doing opposite of earlier commit did.

it's not foolproof , can result in conflicts due changes done since, doesn't alter history, allows document reversal , reasons, , plays other working copies.

git revert tool used make such evil twins of set of commits.


Comments