git mv <source> <destination>

Move or rename a file, a directory, or a symlink

Arguments

NameDescription
sourceFile to move
destinationLocation to move to

Options

NameDescription
-f, --forceForce renaming or moving of a file even if the target exists
-kSkip move or rename actions which would lead to an error condition
-n, --dry-runDo nothing; only show what would happen
-v, --verboseReport the names of files as they are moved