.\" ** You probably do not want to edit this file directly ** .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). .\" Instead of manually editing it, you probably should edit the DocBook XML .\" source for it and then use the DocBook XSL Stylesheets to regenerate it. .TH "GIT\-MV" "1" "09/19/2007" "Git 1.5.3.2" "Git Manual" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .SH "NAME" git\-mv \- Move or rename a file, a directory, or a symlink .SH "SYNOPSIS" \fIgit\-mv\fR \&... \&... .SH "DESCRIPTION" This script is used to move or rename a file, directory or symlink. .sp .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 \fI\-f\fR 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