Search code examples
git-svn

How to commit a Git repo to an empty repo SVN server?


I have setup an empty svn on a server and I have been working on locally making commits along the way. Now I wish to commit my repo to an svn server. For this I tried:

git-svn checkout http://remote.svn.server.com
git-svn dcommit

Git complains that:

Use of uninitialized value in concatenation (.) or string at /usr/bin/git-svn line 411.
Committing to  ...
Unable to determine upstream SVN information from HEAD history

Since I started on my local computer first, and the repo online is empty, I can't find any info on how to make this work.


Solution

  • Here is what I would do:

    git-svn clone http://remote.svn.server.com otherdir
    

    Then in other dir pull the changes locally from your previous dir. Then you should have a git repo that is "connected" via git-svn and you should be able to use dcommit on it.

    This might also be a useful read.