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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:38:55+00:00 2026-05-18T08:38:55+00:00

I am using the git to subversion bridge to check out a subversion repository.

  • 0

I am using the git to subversion bridge to check out a subversion repository. Initially I was using this command,

get svn clone -s svn://repositoryName/etc

But our subversion repository is massive, many years of development, many branches, etc.

The consequence is that the process dies often, when it is compressing the repository the memory usage goes above 1.5 GB, and it dies.

So I thought perhaps I would try and just check out the trunk because that is what I am going to be using mostly. So I tried this,

get svn clone -trunk svn://repositoryName/etc

But I get an error, Use of uninitialized value in pattern match.

Can someone please tell me the correct command to use for checking out the trunk only. Also is there a known bug / memory leak? I am using Git version 1.7.3.1-preview20201002 on windows.

Is there any official documentation for git and the command line options?

  • 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-18T08:38:56+00:00Added an answer on May 18, 2026 at 8:38 am

    This should work:

    git svn clone svn://repositoryName/whatever/trunk
    

    The –trunk option isn’t what you’re looking for. It’s a way to specify the name of the directory that’s typically called “trunk”. For example, if your svn repository used “/main” for primary development, “/releases” instead of “/tags” and “/other” instead of “/branches”, you could use this instead of the -s (–standard) option:

    git clone --trunk=main --tags=releases --branches=other svn://repositoryName/whatever
    

    However, a better option may be to clone the repository starting at a particular svn revision number:

    git svn clone -r 20000 svn://repositoryName/whatever
    cd whatever
    git svn rebase
    

    clone -r 20000 will clone only svn revision number 20000. git svn rebase will then fetch and apply all revisions after 20000, so you’ll be left with a git repository that has a history beginning at revision 20000.

    The man pages are the best place to go for documentation. If you don’t have them installed, kernal.org’s copy is nicely formatted: http://www.kernel.org/pub/software/scm/git/docs/. A google search for “man git svn” will bring up the relevant page quickly.

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

Sidebar

Related Questions

I'm trying to import a large subversion repository into git using git-svn (so that
I have just created a new Git repository backed by Subversion, using git svn.
I converted a Subversion repository to Git using git svn but unfortunately only now
I'm using git-svn to work against my company's central Subversion repository. We've recently created
I am currently working with a subversion repository but I am using git to
Migrating from Subversion to Git using svn2git (which internally uses git-svn) I'd like to
I am using git to develop against a project hosted in subversion, using git-svn:
I am using git as a frontend to Subversion (via git svn). So, for
I am a new user in Git world. I used to use Subversion (using
My company uses Subversion; I prefer Git. I have cloned the Subversion repository on

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.