문제

Long story short, I have a git repo with several branches, and I would like to move it to an SVN repo while maintaining all of the branches and commit history.

So far I have not had much luck, most of the methods I have found do not migrate the branches as I would expect. (they are combined, or ignored, or eaten by a grue)

I was planning on using git-svn (git locally, SVN remote) and from the documentation I got the impression that using Git with SVN in this manner was very possible.. . but no idiot proof tutorial was provided!

Is this possible? if so how? If not what is it about git/svn do I not understand?

도움이 되었습니까?

해결책

Did you check git2svn as detailed in question "Cloning a Non-Standard Svn Repository with Git-Svn"?
It could help for this kind of conversion.

다른 팁

I would not recommend pushing your git branches to a svn repo. When using git-svn, its typical that the git repo is a throwaway piece that helps to keep the svn repo clean and merge friendly.

The best practice, as I have found, is to merge your git branches and git svn dcommit just that branch to a checked out repository branch (don't checkout the entire svn repo). Then again, you can create a svn branch as your scratch branch for this and do a manual merge from that branch to another in svn.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top