Remove files from repository index and local filesystem. More information: https://git-scm.com/docs/git-rm.
git rm {{file}}
git rm -r {{directory}}
git rm --cached {{file}}