What is the correct way to convert SVN remote branches and tags into local Git branches/tags during SVN to Git migration?

For a one-shot operation like this, before leaving behind a SVN repo, I like to clone it using the ruby script svn2git.

For a one-shot operation like this, before leaving behind a SVN repo, I like to clone it using the ruby script svn2git === Examples Say I have this code in svn: trunk ... branches 1. X 2. X tags 1.0.0 1.0.1 1.0.2 1.1.0 2.0.0 git-svn will go through the commit history to build a new git repo.It will import all branches and tags as remote svn branches, whereas what you really want is git-native local branches and git tag objects.

So after importing this project I'll get: $ git branch * master $ git branch -a * master 1. X 2. X tags/1.0.0 tags/1.0.1 tags/1.0.2 tags/1.1.0 tags/2.0.0 trunk $ git tag -l empty After svn2git is done with your project, you'll get this instead: $ git branch * master 1.

X 2. X $ git tag -l 1.0.0 1.0.1 1.0.2 1.1.0 2.0.0.

Thanks, I looked at svn2git but didn't see an easy way to configure it to look for branches/tags in all the places that I mentioned in my config. What underlying commands does svn2git use to turn remote branches into local ones? – Bradley Jul 8 '10 at 18:39 @Bradley: any remote svn branch will be created as a local Git branch after that script is run.

The idea is not using a 'git-svn' clone, but making a new Git repo cloning the svn repo through the script. Leave your current Git repo (from the git-svn clone) aside. – VonC Jul 8 '10 at 18:48 1 Am I able to specify the varied branch/tag locations in the SVN repo that I mentioned in my .

Git/config file when running the script. – Bradley Jul 8 '10 at 19:35.

According to an answer on Git mailing list, I don't need to convert these branches into local ones before pushing them to my remote repo. I just need to do: git push svn/:refs/heads.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send