I accidentally made my Desktop a git repository. How to remove the git-related files from Desktop?
Go to your project directory and execute the following command on windows rmdir /s /q .git that will remove all of the git references.