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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -