There is a probably a better “command line” way to do this, and I know this is a hack, but I’ve never been able to find a good solution.
Using TortoiseGIT: If you have a GIT commit where some file move operations are showing up as load of adds/deletes rather than renames, even though the files only have small changes, then do this:
The new commit will now properly show the file renames… which will help maintain proper file history.