.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "GIT-MV" 1 "" "" "" .SH NAME git-mv \- Script used to move or rename a file, directory or symlink. .SH "SYNOPSIS" git\-mv ... ... .SH "DESCRIPTION" This script is used to move or rename a file, directory or symlink\&. .nf git\-mv [\-f] [\-n] git\-mv [\-f] [\-n] [\-k] \&.\&.\&. .fi In the first form, it renames , which must exist and be either a file, symlink or directory, to \&. In the second form, the last argument has to be an existing directory; the given sources will be moved into this directory\&. The index is updated after successful completion, but the change must still be committed\&. .SH "OPTIONS" .TP \-f Force renaming or moving of a file even if the target exists .TP \-k Skip move or rename actions which would lead to an error condition\&. An error happens when a source is neither existing nor controlled by GIT, or when it would overwrite an existing file unless \-f is given\&. .TP \-n Do nothing; only show what would happen .SH "AUTHOR" Written by Linus Torvalds Rewritten by Ryan Anderson Move functionality added by Josef Weidendorfer .SH "DOCUMENTATION" Documentation by David Greaves, Junio C Hamano and the git\-list \&. .SH "GIT" Part of the \fBgit\fR(7) suite