it is my first attempt to make git-svn project. I have Debian server with direct access.
Info:
– local SVN is one branch and i won’t be doing any local or remote commits
What i want to archive:
-
Create true GIT local repository. That’s easy :-]
-
Create SVN local copy(or git-svn repo ? i don’t know witch will be better in this case) of http://miranda.googlecode.com/svn/trunk/ (one branch) and then automatically get all changes via some script that detect remote changes and run “svn update” after.
-
Somehow get all “changes” one by one (files and commit messages) from local SVN repo to local GIT repo and a branch named “Miranda-svn”. So when you look and the commits/log for this specific branch, you will see the same messages as http://code.google.com/p/miranda/source/list has.
-
Push “Miranda-svn” branch to the remote github.com account, project name “Test”, branch name “Miranda-svn”
-
Merge branch “Miranda-svn” with “master”
Can somebody help me ? Is there some example of such setup ?
This is pretty straightforward with Git.
First “clone” the remote repository with git svn
Note: You may wish to limit the number of revisions fetched by using the
-r start:endswitchThen add a new remote for github
Finally push changes to the github remote
To update Git branch with contents from SVN:
Merge SVN changes to another Git branch:
NB! As SVN has linear history and the “svn” branch will be rebased on every “pull” you do not want to commit anything into Miranda-svn branch with this setup.