how to remove git from a folder windows code example Example 1: remove git from folder windows cmd rmdir /S .git Example 2: how to remove git from a folder rm -rf .git