Stage deleted files

suggest change

git 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents