how to uninitialize a git repository] code example Example 1: how to uninitialize git cd path/to/repo rm -rf .git Example 2: how to uninitialize git rmdir /s .git