Situation
I have Git repo and SVN repo that contain the same source code but different commit history. There are a lot of small comments with comments in the Git repository ... while SVN repo has some huge commits with comments like “A lot of things”. Both series of commits follow the same changes as in the code, and are approximately equivalent.
Desired Result
I would like to switch to using Git-SVN without losing the detailed history from the current Git repository. This should be done by “transplanting” the story from the Git repository to the project's SVN branch (branched from the point where I really started using Git).
Why would you do this? (Story)
Some time ago I started playing with Git. I started by creating a Git repository in a project that I had under the control of SVN. With a little configuration, I had both Git and SVN working in parallel in the same source code.
It was a great way for me to learn and play with Git, while having an SVN security net. This is mainly a sandbox with real data. I did not have time to really learn Git, but I really wanted to work with it. It was a really good way to learn Git for me.
First, after making some changes, I have to pass SVN and then to Git ... then play with Git, knowing that my changes were safe in SVN. Soon I committed more often than Git than SVN ... Now, SVN commits have fallen into annoying work, which I have to do sometimes.
Having learned the difference between git revert and svn revert , I was VERY glad that I registered for the SVN repo. I almost lost a few weeks of work, believing that they work the same way.
Now I know the fame of Git-SVN, and I enjoy using it in several other projects. I was fully aware that when I started, I could lose my Git relay and have to install a new one “correctly” using git-svn init ... but, playing with Git for a while, I'm sure there is some way to hack the story Git on SVN.
git svn git-svn
Nick fisher
source share