It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Where do I put the files above the trunk?

Ronaldo Orbite Jul 30, 2013

I am migrating my svn repository to git with the follow toturial:

https://go-dvcs.atlassian.com/display/aod/Migrating+from+Subversion+to+Git+on+Bitbucket

After migrating the first project, I noticed that the root of git is the trunk (master) and all the files I had above it were not migrated.

These files are important, did contain documentation, files needed for the environment, test cases, scripts and other auxiliaries. They are all common for trunk, branch and tags and are too large to be cloned often.

Ever had any similar problem? There is some suggestion of where to put these files?

Thanks!

Ronaldo!

1 answer

1 accepted

0 votes
Answer accepted
Marcus Bertrand Atlassian Team Aug 06, 2013

Ronaldo,

Git and the git-svn tools can be pretty opinionated. It is generally assumed that nothing is above trunk/ tags/ or branches/ in your repo heirarcy. If you want the items above it, you'll probably want to git-svn clone just the files above trunk into their own repository, then graft the two repositories together, placing those files inside a directory in your repo, or leaving them out on their own.

I found a post explaining how to do this over at Stack Overflow:

http://stackoverflow.com/questions/1153633/how-does-git-svn-behave-with-svn-repositories-that-have-changed-layout

Which led to http://blog.tfnico.com/2010/10/gitsvn-6-grafting-together-svn-history.html

I also found this one, which seems to have a bit more detail: http://ben.straubnet.net/post/939181602/git-grafting-repositories

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira Software

Early Access: If you use Jenkins and Jira Software Cloud, you need to read this!

The Jira Software Cloud Team has been busy working on a simple, secure, and reliable way to integrate your build and deployment information from Jenkins with Jira Software Cloud. This means you don’t...

241 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you