git mv <source> <destination>
Move or rename a file, a directory, or a symlink
Arguments
Name | Description |
---|---|
source | File to move |
destination | Location to move to |
Options
Name | Description |
---|---|
-f, --force | Force renaming or moving of a file even if the target exists |
-k | Skip move or rename actions which would lead to an error condition |
-n, --dry-run | Do nothing; only show what would happen |
-v, --verbose | Report the names of files as they are moved |