1GIT-MV(1) Git Manual GIT-MV(1)
2
3
4
6 git-mv - Move or rename a file, a directory, or a symlink
7
9 git-mv <options>... <args>...
10
12 This script is used to move or rename a file, directory or symlink.
13
14
15 git-mv [-f] [-n] <source> <destination>
16 git-mv [-f] [-n] [-k] <source> ... <destination directory>
17 In the first form, it renames <source>, which must exist and be either
18 a file, symlink or directory, to <destination>. In the second form, the
19 last argument has to be an existing directory; the given sources will
20 be moved into this directory.
21
22 The index is updated after successful completion, but the change must
23 still be committed.
24
26 -f
27 Force renaming or moving of a file even if the target exists
28
29 -k
30 Skip move or rename actions which would lead to an error condition.
31 An error happens when a source is neither existing nor controlled
32 by GIT, or when it would overwrite an existing file unless -f is
33 given.
34
35 -n
36 Do nothing; only show what would happen
37
39 Written by Linus Torvalds <torvalds@osdl.org> Rewritten by Ryan
40 Anderson <ryan@michonline.com> Move functionality added by Josef
41 Weidendorfer <Josef.Weidendorfer@gmx.de>
42
44 Documentation by David Greaves, Junio C Hamano and the git-list
45 <git@vger.kernel.org>.
46
48 Part of the git(7) suite
49
50
51
52
53Git 1.5.3.3 10/09/2007 GIT-MV(1)