JohnAlbin / git-svn-migrate

Helper scripts to ease the migration of Subversion repositories to Git
GNU General Public License v2.0
258 stars 121 forks source link

Problem moving trunk to master #8

Open Shuro opened 12 years ago

Shuro commented 12 years ago

Hi, i tried to convert a svn-repository with several branches to git, everything worked like a charm, except moving the trunk/ to master/.

~> git branch -m trunk master fatal: A branch named 'master' already exists.

I was suprised and looked in "master/" there was a single ".gitignore" file.

Hope for help soon

Shuro commented 12 years ago

You should use git branch -M trunk master in your script, this also moves if trunk exists