I accidentally changed my desktop to a git warehouse. How can I cancel it?
Some netizens said to delete the .git file, but it was useless
.git
Deleting the .git folder means that the desktop is no longer a warehouse. Git will only consider paths with .git folders as working repositories.
After git init, a .git folder will be generated. Just delete this folder. Use the commandrm -rf .git
rm -rf .git
Why can’t I delete .git?
Yes, why can’t I delete .git?
Deleting the .git folder means that the desktop is no longer a warehouse.
Git will only consider paths with .git folders as working repositories.
After git init, a .git folder will be generated. Just delete this folder.
Use the command
rm -rf .git
Why can’t I delete .git?
Yes, why can’t I delete .git?