我使用hg-fast-export工具将一些mercurial回购转换为git,虽然所有这些转换都很好,但当我推送回购。推一个git回购失败,错误:contains'.git'
$ git remote add origin [email protected]:asdf/zxcv.git
$ git push -u origin master
Counting objects: 7840, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2817/2817), done.
error: object 324f9ca2aaae7b1d716db3fc31c02d391c1c2c16:contains '.git'
fatal: Error in object
error: pack-objects died of signal 13
error: failed to push some refs to '[email protected]:asdf/zxcv.git'
“包含” git的”错误具有十分广阔的条款,但没有找到任何文件,所以我试图在原来的回购来搜索现有的“git的”文件夹,我做到了。有一个sububsub文件夹,其中包含我用git rm删除的旧git存储库的实例,但问题依然存在。
无论如何,我可以推这到github或新的清洁回购是唯一的选择?
在此赞赏任何帮助。 谢谢!