1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
\r
4 <sect2 lang="en" id="git-mv(1)">
\r
5 <title>git-mv(1)</title>
\r
7 <primary>git-mv(1)</primary>
\r
9 <simplesect id="git-mv(1)__name">
\r
11 <simpara>git-mv - Move or rename a file, a directory, or a symlink</simpara>
\r
13 <simplesect id="git-mv(1)__synopsis">
\r
14 <title>SYNOPSIS</title>
\r
16 <literallayout><emphasis>git mv</emphasis> <options>… <args>…</literallayout>
\r
19 <simplesect id="git-mv(1)__description">
\r
20 <title>DESCRIPTION</title>
\r
21 <simpara>This script is used to move or rename a file, directory or symlink.</simpara>
\r
22 <literallayout class="monospaced">git mv [-v] [-f] [-n] [-k] <source> <destination>
\r
23 git mv [-v] [-f] [-n] [-k] <source> ... <destination directory></literallayout>
\r
24 <simpara>In the first form, it renames <source>, which must exist and be either
\r
25 a file, symlink or directory, to <destination>.
\r
26 In the second form, the last argument has to be an existing
\r
27 directory; the given sources will be moved into this directory.</simpara>
\r
28 <simpara>The index is updated after successful completion, but the change must still be
\r
29 committed.</simpara>
\r
31 <simplesect id="git-mv(1)__options">
\r
32 <title>OPTIONS</title>
\r
43 Force renaming or moving of a file even if the target exists
\r
53 Skip move or rename actions which would lead to an error
\r
54 condition. An error happens when a source is neither existing nor
\r
55 controlled by GIT, or when it would overwrite an existing
\r
56 file unless <emphasis>-f</emphasis> is given.
\r
69 Do nothing; only show what would happen
\r
82 Report the names of files as they are moved.
\r
88 <simplesect id="git-mv(1)__git">
\r
90 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
\r