git rm

Remove files from repository index and local filesystem. More information: https://git-scm.com/docs/git-rm.

git rm {{path/to/file}}

git rm -r {{path/to/directory}}

git rm --cached {{path/to/file}}