I accidentally made my Desktop a git repository. How to remove the git-related files from Desktop?
Go to the directory where you want to delete your .git folder then type in cmd
rmdir /S .git
Or Click on windows option and Go to file explorer option and check "Show hidden files" and remove .git folder
If you have github repo and some folder in it has greyed out because of this you can use git rm --cached submodule-name
and then commit again