remove git command line code example Example 1: remove git rm -rf .git Example 2: delete git repository command line rm -rf .git