I have an existing SVN repo and I would like to import a part of it, with history into an existing Git repo. Could anyone give me a high-level overview of the commands needed to do this?
Summary:
- I want to move some subdirectories in an existing SVN repository (but not the rest of the repo)
- I have an existing Git repo that I want to import those directories into
- I want to preserve the history of just the subdirectories I moved (but not anything else)
I have a feeling this involves something with git filter-branch
and some strange merges. Any help would be appreciated.
git filter-branch
to prune out the stuff you don't want to keep. I'm not sure it's even possible to only import part of ansvn
repository in that way, and even if you can it's not likely to be simple... – Helvetiansvnadmin dump
, and then usesvndumpfilter
to filter out the parts you don't want. – Hawkshaw