Move or rename and stage the change.
Section: Snapshotting and Commits
Rename tracked file
bash
bash
git mv old-name new-nameLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Snapshotting and Commits