Search code examples
gitwindows-7desktop

How to remove git repository created on desktop


I accidentally made my Desktop a git repository. How to remove the git-related files from Desktop?

  • I have tried to go to C:/User/my_user/Desktop and un-hide hidden git files but couldn't un-hide them.
  • Then I tried to delete the files using Windows Powershell but it isn't listing these files either.
  • I have also tried finding options in GitExtensions for some option to delete the git files but couldn't find any such option.
  • Couldn't find option in Git GUI

There is a git repository for sure because I can use GitEx Browse option in the right click menu.


Solution

  • remove the hidden folder named .git from your Desktop