Stage deleted files
suggest changegit rm deletes the file from the working tree and stages that deletion. If the file is already gone from disk, it only stages the deletion:
git rm filename
To remove the file from the index and leave the copy on disk, use --cached:
git rm --cached filename
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents