cg-mv(1) - Linux man page

Name

cg-mv - rename or move files in a git repository

Synopsis

cg-mv [-f] FILE... DEST

Description

Takes either two filenames and removes a file from the first one to the second one, or a list of filenames and a dirname and moves all the files to the directory. The changes will be executed in your working tree immediately, but recorded to the repository only at the time of the next commit.

Note that so far, GIT/Cogito does not track file renames/moves per se. Therefore, doing gitlink:cg-mv[1] is currently the same as doing gitlink:cg-rm[1], gitlink:cg-add[1] from the Cogito perspective, and no special information is recorded that the file moved around. When any rename tracking gets involved currently, it is purely heuristical method executed at the time of examination.

Options

-f

Remove the target file if it already exists.
-h, --help
Print usage summary.
--long-help
Print user manual. The same as found in gitlink:cg-mv[1].

Copyright

Copyright © Petr Baudis, 2005

See Also

cg-mv is part of gitlink:cogito[7], a toolkit for managing gitlink:git[7] trees.