pushing a git repo fails with error: contains '.git'
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I converted a few mercurial repos to git using the hg-fast-export tool and while all of them were converted fine, one produced the following error when I pushed the repo. $ git remote add origin git@github . com : 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 :