Git · Everyday workflow
git rm
Removes a file from the working tree and the index.
Syntax
git rm <path>Example
Example
git rm old-file.ts git rm --cached secrets.env
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.