2

I have a svn repository that I need to push a SDKs' folder to a github repository. The catch is that I need to preserve the svn history related to the SDKs' folder and push it, with their respectives commit messages, to github.

I've created a git repository using git-svn but I'm stuck on what to do next. I've also tried to add a submodule, for the SDKs folder, but for some reason I can't push it back to the svn repository.

2
  • Do you want to replace the svn repo, or use both git and svn in parallel? Commented Dec 13, 2010 at 7:49
  • I have to use both git and svn :( Commented Dec 13, 2010 at 16:52

1 Answer 1

0

You can convert a SVN subdirectory to a git repo provided the SVN repo has the right structure (for tags especially)

Once that git repo exists,

  • it can be pushed to its own GitHub repo 'GitHub_SDK'
  • it can be reference by your original GitHub repo as a submodule

That way, any modification made to that submodule will end up in your independent GitHub_SDK repo (or its local copy) and can be pushed back (git svn dcommit) to its SVN repo.

Sign up to request clarification or add additional context in comments.

1 Comment

I've tried that before but for some reason the submodule gets deleted in svn every time I try to commit it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.