是否有撤消 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?
推荐答案
你可以直接删除 .git.通常:
You can just delete .git. Typically:
rm -rf .git
然后,重新创建为正确的用户.
Then, recreate as the right user.
这篇关于是否有撤消 git init 的命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文