git mv
git mv <old> <new>
Risk: Safe
What it does
Renames or moves a file.
When to use it
When a file needs a better name.
Example
$ git mv home.html index.htmlRename it. Git knows it moved.
Learn it in: Remove and rename · Official docs
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?
git mvgit mv <old> <new>
Risk: Safe
Renames or moves a file.
When a file needs a better name.
$ git mv home.html index.htmlRename it. Git knows it moved.
Learn it in: Remove and rename · Official docs