I am using diversion for an Unreal Engine project and I accidentally committed changes to a few .uasset files.
I do not want to revert the entire commit, because the commit also includes other files that are correct. I only want to take a few files back to the version they had before that commit.
I want to preserve the repository history, not delete the file or remove the previous commit.
you should be able to restore only the specific files without reverting the whole commit. In diversion the safest approach is usually to open the commit history, find the version of the file you want, and restore only those selected files back into the workspace before creating a new commit. That way the repository history stays clean and the other correct changes remain untouched.