Migrating from SVN repository with no trunk, branches or tags folders to GIT

I have a project on SourceForge using SVN for maintaining revisions. I didn’t use the standard configuration (trunk, branches, tags). Instead, all was in the main folder (/).

So, to convert it to GIT, we omit the –stdlayout option; the ‘authors.txt’ file contains the project maintainers email addresses.

git svn clone <svn repo url> --no-metadata -A authors.txt ~/temp

We can then submit the GIT repository as is: all the SVN history will be retained.

git remote add origin ssh://USERNAME@git.code.sf.net/PROJECT_GIT_DIRECTORY
git push origin master
Advertisements
This entry was posted in Software and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s