file.php to src directory (if the directory does not exist, the file will be renamed to src)git mv file.php src
file.php will be moved to src/ directory (if the destination directory does not exist, git will throw the error: destination directory does not exist.. git mv file.php src/
After running the command, status of the file will be renamed, but if we did it manually, git will identify the operation as deleted and new file