September 2009
Beginner
942 pages
85h 34m
English
rm
git rm [-f] [-r] -- path ...Remove files from the work tree and index. They will be permanently removed when you run git commit.
With -f, forces removal of a file even if it doesn’t match HEAD. With -r, removes entire directories and all their contained files.
| -f (force) |
| -r (recursive) |
| --cached (ignore work tree) |
| -n, --dry-run |
To remove the mylib directory:
$ git rm -r mylib
rm 'mylib/test1.c'
rm 'mylib/test2.c'