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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:25:20+00:00 2026-05-17T20:25:20+00:00

our svn server has a trunk called Dev and Branches live in /Branches/Release/1.0/ /2.0/

  • 0

our svn server has a trunk called Dev and Branches live in

/Branches/Release/1.0/
                 /2.0/
                 /2.3.4/

i cloned it with something like git svn clone -T Dev ... -b Branches ...
when I run git branch 2.1 remotes/Release/2.1 i get:
fatal: Not a valid object name: 'remotes/Release/2.1'.

  • How do I refer to the remote branch?
  • Do I need to re-clone with different args?
  • 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-17T20:25:21+00:00Added an answer on May 17, 2026 at 8:25 pm

    As mentioned in “How do I import svn branches rooted in different directories into git using git-svn?“, you need to grab all the nested branch during the initial import:

    [svn-remote "svn"]
        url = svn://svnserver/repo
        fetch = trunk:refs/remotes/trunk
        branches = branches/*/*:refs/remotes/*
        tags = tags/*:refs/remotes/tags/*
    

    That is also described in this thread.
    For even more complex SVN branch layout (like branches within trunk!), a modification of the SVN repo might be in order first, before putting in place a git-svn integration.

    Since Git1.6, “1.6.x offers deep cloning so that multiple wildcards can be used with the –branches option”, as mentioned in “Cloning a Non-Standard Svn Repository with Git-Svn“.

    git svn clone https://svn.myrepos.com/myproject web-self-serve --trunk=trunk --branches=branches/*/* --prefix=svn/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our svn repository has lots of branches that are branches off of sub-trees. This
I have an SVN server, and I'd like to use our LDAP server for
We would like to move our code from the local SVN server to a
Our SVN server has recently moved servers (from serverA to serverB). I did a
Our team has recently migrated to git. We have production web application server with
We've got a situation where someone messed up a Commit to our SVN server.
Recently our Subversion (SVN) server was changed and we did a svn switch .
Our I.T. dept doesn't allow connections to the SVN server from outside the physical
We use SQL Server 2000/2005 and Vault or SVN on most of our projects.
Seems like a simple problem: I have an SVN repo inside our firewall. I

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.