> doesn't capture some metadata changes like renames
If you rename the file using git and that is the only change in your file, then it works:
git mv oldfile newfile
Commit that change and the rename is in your history.