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