Git revert after code moved to another file

How to do `git revert` after the code has been moved to another file