git - Adding changes from another commit except for some files -
i have broken commit adding many files, reverted previous commit, created new branch out of it, , have new branch old commit on it.
i want add changes commit after reverting except redundant files.
how this?
there's no need revert, git rm
on files didn't want, git commit --amend
alter bad commit doesn't include files.
alternatively, git cherry-pick -n <bad-commit-id>
apply bad commit current branch, edit removing unwanted parts, commit.
Comments
Post a Comment