1

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?

Mat
  • 202,337
  • 40
  • 393
  • 406
Eric Pigeon
  • 1,091
  • 2
  • 10
  • 21
  • 1
    The guide is convoluted at points... I'd never have touched the HEAD of the bare like that. Anyway: try `git push bare master` – fge Jan 04 '12 at 18:39
  • @fge +1 it resolved my same error. Can you please suggest why adding master to bare push resolved this error.. – Manvi Apr 02 '18 at 16:14

1 Answers1

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).

Community
  • 1
  • 1
yuwang
  • 846
  • 11
  • 24