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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:15:27+00:00 2026-05-24T16:15:27+00:00

Using git-svn it is quite beautiful to use my local git as a svn

  • 0

Using git-svn it is quite beautiful to use my local git as a svn client.

Unfortunately it seems not to be possible to restrict git svn to some branches?

got
One '*' is needed in glob: 'branches/v10'

when setting up two branches lines in gitconfig with fixed branch paths

url = https://example.com/svn/reps/test
fetch = trunk:refs/remotes/trunk
branches = branches/v10:refs/remotes/v10
branches = branches/v09:refs/remotes/v09

Is there a way to get around WITHOUT using different SVN remotes (which causes, index will blow up cause branch points are not just “patches/copies” from trunk and all the “trunk” history will come in again ;(


EDIT:
To clearify what I intend:
There is a huge SVN repository with n branches. In SVN, I’ll checkout just two branches in two different workspaces I need to work for.
In Git, the DVCS aspect will “clone” the whole SVN repository, including ALL informations of ALL SVN branches (think about a repository with > 50.000 changesets).
I intended to keep the disk usage as small as possible on my local machine.
Therefore I thought about, set up git for just two specific branches I need (v10 and v09). So I still have the great merge features within this git repository but doesn’t need to clone all the stuff I don’t need (and never will need to).
Another aspect than “Disc usage” is the problem, that cloning the complete SVN repository takes very, very… (did I say very) long!


  • 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-24T16:15:28+00:00Added an answer on May 24, 2026 at 4:15 pm

    The solution to this is in the manual. At the end of svn manpage, the following comment was found:

    It is also possible to fetch a subset of branches or tags by using a comma-separated list of names within braces. For example:
    [svn-remote "huge-project"]
            url = http://server.org/svn
            fetch = trunk/src:refs/remotes/trunk
            branches = branches/{red,green}/src:refs/remotes/branches/*
            tags = tags/{1.0,2.0}/src:refs/remotes/tags/*
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert a local SVN repository to git using git-svn under cygwin
I'm using Git for version control and unlike SVN I have not come across
I'am using git as scm of choice but have to use a svn-repo. I
I converted a Subversion repository to Git using git svn but unfortunately only now
I'm using git svn to get some git goodness with the company-mandated svn server.
From what I could find around the web, it seems that using git svn
I'm using git-svn to store a staging version of some SVN repo, where other
I am using git-svn with the following workflow now git clone <SVN TRUNK URL>
I am using git-svn for our svn repository. However, the repo is huge, so
After cloning an SVN repository using git-svn with the -s option ( git svn

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.