I made a disastrous mistake with “create git repo here” - how do I rectify/undo it?

后端 未结 4 2191
遇见更好的自我
遇见更好的自我 2020-12-11 10:27

I am new to Git. I have created an account on Bitbucket and downloaded TortoiseGit.

I\'m on Windows 7 and on the desktop I right clicked and thought \"add git repo h

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-11 11:05

    Do not run git reset --hard that will delete all the files. Delete the hidden .git folder.

    Press Win + R type in cmd and press enter.

    cd Desktop
    rmdir /S .git
    

提交回复
热议问题