search

Home  >  Q&A  >  body text

javascript - I have inited desktop git, how can I undo it?

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

世界只因有你世界只因有你2837 days ago1879

reply all(4)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-06-05 11:10:29

    Deleting the .git folder means that the desktop is no longer a warehouse.
    Git will only consider paths with .git folders as working repositories.

    reply
    0
  • PHP中文网

    PHP中文网2017-06-05 11:10:29

    After git init, a .git folder will be generated. Just delete this folder.
    Use the commandrm -rf .git

    reply
    0
  • ringa_lee

    ringa_lee2017-06-05 11:10:29

    Why can’t I delete .git?

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-06-05 11:10:29

    Yes, why can’t I delete .git?

    reply
    0
  • Cancelreply