How to remove git repository created on desktop

后端 未结 7 816
梦谈多话
梦谈多话 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:41
    1. Go to the directory where you want to delete your .git folder then type in cmd rmdir /S .git

    2. Or Click on windows option and Go to file explorer option and check "Show hidden files" and remove .git folder

    3. If you have github repo and some folder in it has greyed out because of this you can use git rm --cached submodule-name and then commit again

    0 讨论(0)
提交回复
热议问题