description:
git mv command is used to move or rename a file, directory, or symbolic link.
In the first form, it will <source>
rename <destination>
it must exist, and can be a file, directory, or symbolic link. In the second form, the last parameter must be an existing directory; given source will be moved to this directory.
After successful completion of the index is updated, but still have to commit the changes.
Commonly used commands:
- Rename the file
git mv <filename> <new_filename>
- Moving Files
git mv <filename> <dir>