I accidentally made my Desktop a git repository. How to remove the git-related files from Desktop?
Some suggestions:
- Make sure you are logged in with an admin account.
- Navigate, in Explorer, to "C:/User/my_user/".
- Right-click on 'Desktop' and select the 'Security' tab.
- Make sure 'my_user' has full control over the Desktop folder.
- Windows key->"Folder Options"->View: "Show hidden files, folders, and drives"
Now try to delete the .git dir and related files from Desktop (via command line or Explorer).
(Apologies if you have tried all these things, just trying to be thorough...)