svn到git的转换没有共同的引用



我正试图按照中的说明将svn存储库转换为githttp://www.albin.net/git/convert-subversion-to-git.在遵循相同的指令之前,我已经做过一次了,它起到了作用,但这次在指令"git-push-bare"的第4步,我得到了以下错误。

No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '/Users/[ME]/new-bare.git'

无论如何都要克服这个错误?或者有更好的方法将svn转换为git吗?

我也试着遵循指南,它很复杂,对我来说不起作用。我不知道为什么,我做的很简单:1.git-svn克隆YOUR_svn_REPOSITORY2.手动修复提交历史中的作者(如何更改git中提交的作者)。

最新更新