cg-rm(1)

cg-rm1

Remove files from the repository

Usage

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

Overview

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 cg-status(1) list. You can remove cg-add(1)ed files to undo the addition; you can undo removals in an analogous way using cg-add(1) and restore files deleted from the working copy using cg-restore(1)..sp

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 cg-rm(1).

From cogito 0.18.2-1 in Debian 4.0 (Etch). Parsed by carta from the page's man source.