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 interactively apply old version of a file using the checkout command.
For example, if you know the COMMIT where the code to add back was removed, you can run the following command:
git checkout -p COMMIT^ -- FILE_TO_REVERT
Git will prompt you to add back the hunks that are missing from the current version of the file. You can use e to create a patch of the change before applying it back.