有没有一个命令来撤消git init? [英] Is there a command to undo git init?
本文介绍了有没有一个命令来撤消git init?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是让Git用错误的用户启动了一个回购协议,并且想撤消它。有没有这方面的命令?我真的必须进入并编辑.git目录吗?
I just Git init'ed a repos with a wrong user, and want to undo it. Is there any command for this? Do I actually have to go in and edit the .git directory?
推荐答案
如果您只是点了它,您可以删除。饭桶。通常:
If you just inited it, you can just delete .git. Typically:
rm -rf .git
然后,重新创建合适的用户。
Then, recreate as the right user.
这篇关于有没有一个命令来撤消git init?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文