svn to git conversion no refs in common

断了今生、忘了曾经 提交于 2019-12-11 13:16:39

问题


I am trying to convert an svn repository to git following the instructions at http://www.albin.net/git/convert-subversion-to-git. I've done this once before following the same instructions, and it worked, but this time at step 4 in the instructions "git push bare" I get the following error.

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'

Anyway to get past this error? or is there a better way to convert from svn to git?


回答1:


I've also tried to follow the guide, it's complex and didn't work for me. I've no idea why, what I did is simple: 1. git svn clone YOUR_SVN_REPOSITORY 2. Manually fix the author in commit history(How do I change the author of a commit in git).



来源:https://stackoverflow.com/questions/8730797/svn-to-git-conversion-no-refs-in-common

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!