How to remove git repository created on desktop

Aseem Bansal picture Aseem Bansal · Jun 28, 2013 · Viewed 57.1k times · Source

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.

Answer

Guillermo Maschwitz picture Guillermo Maschwitz · Jun 28, 2013

remove the hidden folder named .git from your Desktop