Besides, a few passes refactoring and your git history is ruined. No way you’ll find the original commit within any reasonable time frame.
If I move the code to another function, your original commit message will be hard to trace. If the code was commented, the comment would have been moved along. If the code was readable, you don’t need the comment or the commit message.