Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3609434
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:37:37+00:00 2026-05-18T21:37:37+00:00

We currently use subversion as our version control system, we have decided that we

  • 0

We currently use subversion as our version control system, we have decided that we are moving to git. I have been having a hard time moving my subversion system with a standard layout into git. I have used git svn as much as I can.

What i need to accomplish is convert our subversion system to git with all commit history and as well as tags and branches. Then to be able to separate each of the projects into separate git repositories with their individual history, then combine each of these individual repositories into submodules.

I would appreciate any ideas on how to most easily accomplish this.

svnroot/
|-- branches
|-- tags
|-- trunk
    |-- project A
    |-- project B
    `-- project C

Please and thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:37:38+00:00Added an answer on May 18, 2026 at 9:37 pm

    If your svn repository layout is:

    svnroot/
    |-- projectA
    |   |-- branches
    |   |-- tags
    |   `-- trunk
    |-- projectB
    |   |-- branches
    |   |-- tags
    |   `-- trunk
    `-- projectC
        |-- branches
        |-- tags
        `-- trunk
    

    Then you could create separate git repositories for each project e.g., projectA:

    $ git svn clone --stdlayout https://svn.example.net/svnroot/projectA
    

    After that you could create the main git repo (git init) and add the created git repos for project{A,B,C} as submodules to it (git submodule).

    But it is probably not what you want; from the git submodule manual:

    Submodules allow foreign repositories
    to be embedded within a dedicated
    subdirectory of the source tree,
    always pointed at a particular commit.

    They are not to be confused with remotes, which are meant mainly
    for branches of the same project; submodules are meant for different
    projects you would like to make part of your source tree, while the history of
    the two projects still stays completely independent and you cannot
    modify the contents of the submodule from within the main project.

    If you’d like to modify project{A,B,C} from within the main project and keep the unite history of the projects then the submodules are not appropriate for the task.


    For the provided svn repo layout:

    svnroot/
    |-- branches
    |-- tags
    |-- trunk
        |-- projectA
        |-- projectB
        `-- projectC
    

    try to create the git repositories using --trunk, --branches, --tags arguments e.g.:

    $ git svn clone                       \
    >    --trunk trunk/projectA           \
    >    --branches branches              \
    >    --tags  tags                     \
    >    https://svn.example.net/svnroot  \
    >    projectA
    

    On completion the .git/config file should contain something like:

    [svn-remote "svn"]
            url = https://svn.example.net/svnroot
            fetch = projectA/trunk:refs/remotes/trunk
            branches = branches/*:refs/remotes/*
            tags = tags/*:refs/remotes/tags/*
    

    You could use --ignore-paths=<regex> to skip matching paths from the project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have successfully installed and configured gitosis on an Ubuntu server. We're currently just
We are using ec2 lab to work on our product. The product currently I
I'm a little shocked that (if?) this precise questions hasn't been asked, but 15
Pls. see Creating a Subversion branch . I created a repository with a URL
I'm researching changing my current strategy for creating marketing websites. Currently, I build sites
I've set up a Ubuntu Server for Subversion with Apache/WebDAV interface to share repositories
I've set up a Ubuntu Server for Subversion with Apache/WebDAV interface to share repositories
I was searching for dropbox alternatives with own server, but had no luck. iFolder
I've reached a point in my independent development work where I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.