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 8999885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:14:21+00:00 2026-06-16T00:14:21+00:00

I am migrating some SVN projects to git. I want to clone a certain

  • 0

I am migrating some SVN projects to git.

I want to clone a certain tag to its own git repository.

By doing a git svn clone on the TAG path I loose all the history that happened before the svn copy, that created the tag in the first place.

Is there a way to preserve the original history in the new git project? (I can browse the SVN history in the IDE of my choice, so SVN seems to be able to provide the needed information)

Reminder: I do NOT want a trunk project with branches and tags resembling the SVN structure. I want a separate project with just the TAG and all the history attached (including revisions before the tag creation)

  • 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-06-16T00:14:22+00:00Added an answer on June 16, 2026 at 12:14 am

    check the --follow-parent flag:

     git svn clone --follow-parent https://path.to/svnroot/repo/tags/0.12
    

    EDIT:

    note however, that git svn will only ever see content that is within the context of the cloned directory; svn-tagging usually involves copying one directory to another location, so you need the entire directory tree (containing both the “trunk” and the final “tagX” director) in order to have enough context for git to work.
    the reason for this is, that git will refuse to copy anything from/to a path outside the git-repository itself (which makes sense).
    svn can see the entire history, since it really has the full context (on the server, even if you only have a partial checkout on your local machine)

    so, in order to have the full history into your git svn clone, you will probably indeed need to clone the entire project (that is, at least the directory that contains both the trunk and the tag-dir).

    so the way to proceed would be:

    • do a full git svn clone of your svn repository, with specifying the trunk/tags/branches directories (--trunk, --tags and --branches flags if you have some special setup or use --stdlayout if your repo is organized in the standard /trunk, /tags/…, /branches/… way)

    • this will give you a git repository with a number of git branches and git tags, where you can remove all the branches/tags you don’t want (or just don’t push them to a server)

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

Sidebar

Related Questions

I am using hudson version 2.2.0 After migrating from svn to git, i noticed
I'm doing some testing of 64-bit GHC on Windows, in tandem with migrating code
I'm migrating a few projects from SVN to Mercurial and I'm not sure how
In the very near future I'll be migrating some web applications from VS2003 projects
I have a project in SVN that I'm migrating to Git. The project consists
I'm migrating some websites over to another server. One of the websites is built
I am migrating some spreadsheets from Excel 2003/WinXP to Excel 2010/Win7. Some spreadsheets use
We are having some serious issues migrating Visual FoxPro to SQL Sever.. I don't
After creating a table (by migration), I want to insert some entries directly. How
We're migrating from SVN, and also merging a bunch of branches. To massively simplify,

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.