In one repo, I have a commit (about 3 behind the HEAD) that has a large number of file deletions that were accidentally staged and included in the commit. Depending on the file type, they appear like either of the following when executing git log --stat
:
path/to/some/file | Bin 22522 -> 0 bytes
path/to/another/kind/of/file | 1 -
I would like to reverse these deletions and not have any of them appear in my commit. (Note: I'm not trying to hide the deletions, so if there is a method that reverses them, that is fine, too. I just don't want my PR to merge in these file deletions.)
If there's something I should do to update the remote after reversing the file deletions, that would be helpful as well.