Skip to content

Glossary: Command Line and Git

git rm --cached

Also written: rm --cached

Stops Git tracking a file but leaves it on disk. Use it when a file was committed before you added it to `.gitignore`.

Where the book teaches it

Related terms

.gitignoreuntracked file