How to remove git repository created on desktop

后端 未结 7 813
梦谈多话
梦谈多话 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:37

    If you are a Comamnd Line Freak! You can also do it from your command prompt

    • Start --> Run

    • Type: cmd

    • Navigate to the folder of your project (ex: cd c:\myProject )

    • From the folder of your project you can type the following to be able to see the .git folder: attrib -s -h -r . /s /d

    • then you can just Delete the .git folder from the command line: del /F /S /Q /A .git

    • and rmdir .git

提交回复
热议问题