How to remove git repository created on desktop

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

    ^C[~ (master #)]$ ls -al | grep .git
    

    You should see the following files: .git .gitconfig

    qc^C[~ (master #)]$ rm -rf .git
    

    (recursively remove the .git file)

提交回复
热议问题