Non-cheeky answer:
git mv file2 file1
Updates the index for both old and new paths automatically.
Check documentation of git mv
Non-cheeky answer:
git mv file2 file1
Updates the index for both old and new paths automatically.
Check documentation of git mv