cg-rm

Langue: en

Version: 02/24/2009 (fedora - 04/07/09)

Section: 1 (Commandes utilisateur)

NAME

cg-rm - remove files from the repository

SYNOPSIS

cg-rm [-a] [-f] [-n] [-r] FILE...

DESCRIPTION

Takes a list of file names at the command line, and schedules them for removal from the GIT repository at the next commit. Those files are denoted by D in the gitm[blue]1m[][1] list. You can remove gitm[blue]1m[][2]ed files to undo the addition; you can undo removals in an analogous way using gitm[blue]1m[][2] and restore files deleted from the working copy using gitm[blue]1m[][3].

OPTIONS

-a

Record removal of all files which have been deleted from the working copy. Useful when there were some random files added/removed (e.g. by some third-party application) and you want to get the repository in sync: just use cg-rm -a && cg-add -a.

-f

Also delete the files from the tree physically.

-n

Do not delete the files from the tree physically, if they are still there. So it effectively just makes Cogito to stop caring about the file. This is the default.

-r

If you pass cg-rm this flag and any directory names, it will try to remove files in those directories recursively.

-h, --help

Print usage summary.

--long-help

Print user manual. The same as found in gitm[blue]1m[][4].

Copyright © Petr Baudis, 2005

SEE ALSO

cg-rm is part of gitm[blue]7m[][5], a toolkit for managing gitm[blue]7m[][6] trees.

NOTES

1.
1
[set $man.base.url.for.relative.links]/cg-status
2.
1
[set $man.base.url.for.relative.links]/cg-add
3.
1
[set $man.base.url.for.relative.links]/cg-restore
4.
1
[set $man.base.url.for.relative.links]/cg-rm
5.
7
[set $man.base.url.for.relative.links]/cogito
6.
7
[set $man.base.url.for.relative.links]/git