几天前,我在Github上创建了一个存储库,然后按照步骤将现有的解决方案添加到它。我不知道我做错了什么,但也有少数随机后“混帐添加”命令和诸如此类的东西,我现在在GitHub上得到的消息对于Windows:重置本地git存储库
failed to sync this branch.
You might need to open a shell and debug the state of this repo.
不会发生的。
一个更好的想法是,我删除存储库在github上,并与我的本地库开始。我知道如何删除github上的仓库(我知道这很容易,因为我已经做过一次)。我不知道如何从本地重新开始。是否有一个基本上“git uninit”或“git解构存储库”的git命令?
删除隐藏的.git文件夹并重新开始。 – j08691 2012-08-11 00:48:22
这看起来像http://stackoverflow.com/questions/1514054/how-do-i-delete-a-local-repository-in-git – 2012-08-11 00:50:52
@ j08691的副本是正确的。除此之外,也许你也可以使用“git init”进行初始化,然后使用“git remote add/rm”更新github repo,然后使用“git add -A”来跟踪所有内容? – CherryQu 2012-08-11 00:53:47