git-rm
Remove files from repository index and local filesystem. tldr-pages
On several platforms
Several platforms
Remove file from repository index and filesystem
git rm path/to/fileIdentifyRemove directory recursively
git rm -r path/to/directoryIdentifyRemove file from repository index but keep it untouched locally
git rm --cached path/to/fileIdentifyReduce the repository to only the .git directory
git rm -r .Identify