【发布时间】:2015-04-09 16:03:37
【问题描述】:
我有一个大型 git 存储库(从 SVN 存储库创建),我想将它推送到 github。鉴于它很大,我不能直接尝试推送它,因为它会因“pack too large”错误而失败。
到目前为止一切顺利,我可以一次将 repo 推送一个提交。但是当我尝试这样做时,会发生什么:
git push origin 86c310d8a680d6d0e052fa7db89adb25348f3e54:master
error: unable to push to unqualified destination: master
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
所以,远程仓库还没有 master 分支,但我正在尝试推送它,但它失败了。
我该如何解决这个问题?或者如何在远程创建一个空的 master 分支以便推送到它?
【问题讨论】: