Is it possible to revert only a single file or certain changes in a file in multi file commit?
Full story I committed a bunch of files. A number of
You can revert the commit without creating a new one by adding the '--no-commit' option. This leaves all the reverted files in the staging area. From there, I'd perform a soft reset and add in the changes I really wanted. For an example workflow:
git revert --no-commit
git reset // This gets them out of the staging area
git add
git checkout . // This wipes all the undesired reverts still hanging around in the working copy
git commit