git rm to delete file code example Example 1: delete git rm -rf .git Example 2: how to remove stuff from git git rm -r File-Name