git deinit code example Example 1: remove git init rm -rf .git Example 2: git init at wrong folder cd myFolder rm -rf .git