411 REFERENCE · Wikibooks
Git/Overview/Deleting
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Removing Files
To remove files, use the "rm" subcommand of git.
git rm <filename> [filenames]
git rm --cached <filename> [filenames]
The second variant only deletes the file from the cache, leaving the physical file in place.