Git/Overview/Deleting

From Wikibooks, open books for an open world
< Git | Overview(Redirected from Source Control Management With Git/Overview/Deleting)
Jump to: navigation, search


[edit] 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.

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export