How to undo git init on a home directory?

后端 未结 1 1078
攒了一身酷
攒了一身酷 2020-11-27 08:08

I did git init and git add . on my home directory, which slowed every operation down, I think, because the directory is so large. How can I undo

相关标签:
1条回答
  • 2020-11-27 08:24

    You can just do rm -rf $HOME/.git to remove all the version control information stored by git, which undoes whatever git init did.

    But I highly doubt that running git init could slow anything down.

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