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

  • Home
  • SEARCH
  • 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 1094397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:58:01+00:00 2026-05-16T23:58:01+00:00

I’m tracking a project that has recently moved from svn to git. I’ve got

  • 0

I’m tracking a project that has recently moved from svn to git. I’ve got the most recent svn code and want to start using the code from git. Is there a way to do this that doesn’t involve re-downloading quite a large codebase over a slow connection? Essentially, I want to be able to say “start from here (old svn code) and just get the changes from git”.

  • 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-16T23:58:02+00:00Added an answer on May 16, 2026 at 11:58 pm

    SVN & Git may seem similar because they’re both SCM tools, but under the hood, they’re implemented very different, i.e. Git is way better.

    Just start from fresh and git clone it. Even for large projects like the Linux Kernel, Git is very fast at cloning.

    You could also use the --depth option to speed things up:

    –depth <depth>
    Create a shallow clone with a history truncated to the
    specified number of revisions. A shallow repository has a
    number of limitations (you cannot clone or fetch from
    it, nor push from nor into it), but is adequate if you
    are only interested in the recent history of a large project
    with a long history, and would want to send in fixes
    as patches.

    Source: http://git-scm.com/docs/git-clone

    Here’s an example that checks out the most recent version of the repository:

    git clone git://source.winehq.org/git/wine.git ~/wine-git --depth 1
    

    Source: http://mortalpowers.com/news/speed-up-git-clone-with-shallow-clones

    You can later use the --depth option with git pull:

    –depth=<depth>
    Deepen the history of a shallow repository created by
    git clone with –depth=<depth> option by the specified number of commits.

    Source: http://kernel.org/pub/software/scm/git/docs/git-pull.html

    Perhaps, if you put a large enough number (or maybe -1?) for depth so as to pull in the entire history of the repository, then you’ll have all the functionality of a normal repository, e.g., the ability to clone or fetch from it, or push from or into it.

    If not, you can just clone it normally in a separate place (perhaps when you have a faster connection) and use git format-patch and git apply to move your commits from the shallow repository into the new one.

    Matt

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

Sidebar

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.