How to remove git repository created on desktop

后端 未结 7 980
梦谈多话
梦谈多话 2021-02-04 01:14

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
7条回答
  •  半阙折子戏
    2021-02-04 01:21

    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...)

提交回复
热议问题