how to remove .git directory windows code example Example: remove git from folder windows cmd rmdir /S .git