I have a project in an SVN source, which will have to be migrated to a Git repository. What I’d like to do is committing all changes to Git repo from now on, while still fetching eventual changes from SVN, until it’s dismissed.
At the moment, I created the Git Repo, used git svn to clone it from the original SVN and pushed everything into Git. Issue is, if I do a Pull, I’m fetching the modifications from Git, which is not what I want.
In practice, I’m trying to “fork” the SVN repository into Git and tracking SVN changes. Is it possible to do that?
Thanks in advance for the answers.
Yes you can do that, in your git repo, the
masterbranch is trackinggit-svnso when you rungit svn rebaseit updatesmasterwith the content in SVN.In this same repository you can have another branch which merges regularly
masterbut contains modifications that will not be sent back to SVN.While migrating from svn to git we have the same workflow than described in this answer.