如何撤消主目录上的git init? [英] How to undo git init on a home directory?
本文介绍了如何撤消主目录上的git init?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的主目录上执行了 git init
和 git add。
,这减慢了每个操作的速度,我认为,因为目录太大了。我如何撤消主目录的 git init
?
解决方案
您可以执行 rm -rf $ HOME / .git
删除所有由git存储的版本控制信息,这会消除 git init
所做的任何操作。
但是我非常怀疑运行 git init
会减慢速度。
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 git init
of the home directory?
解决方案
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.
这篇关于如何撤消主目录上的git init?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文