git rm - doc-cloud/git GitHub Wiki
cached
git rm --cached ./path
error
=======================================================
[root@linkerist-desktop:12:46:53: /vay/proj/ccs/src #] git rm bak/ fatal: not removing 'bak/' recursively without -r [root@linkerist-desktop:12:46:57: /vay/proj/ccs/src #] git rm bak/ -r error: the following files have local modifications: src/bak/ccs.c src/bak/ccs.h src/bak/comments.c src/bak/lexi.c src/bak/output.c src/bak/output.h src/bak/parse.c (use --cached to keep the file, or -f to force removal) [root@linkerist-desktop:12:47:00: /vay/proj/ccs/src #]
[root@linkerist-desktop:08:03:40: /vay/proj/mcc #] git rm mcc.c error: the following file has local modifications: mcc.c (use --cached to keep the file, or -f to force removal) [root@linkerist-desktop:08:03:45: /vay/proj/mcc #] git rm mcc.c -f rm 'mcc.c' [root@linkerist-desktop:08:03:52: /vay/proj/mcc #]
========================================================
fatal
[root@Linkerist-Lenovo-G500:14:20:52: /vay/app/patch-2.6 #] git rm config* fatal: pathspec 'config.h' did not match any files [root@Linkerist-Lenovo-G500:14:21:02: /vay/app/patch-2.6 #]