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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:09:33+00:00 2026-05-23T22:09:33+00:00

We’ve been using Subversion and are considering moving to git. So I am very

  • 0

We’ve been using Subversion and are considering moving to git. So I am very much a git illiterate. I used git svn clone to copy the svn history to git and my git folder was 3.1G. I followed some advice from several blogs to shrink it and ran:
git repack -a d -f --window=100
It processed 494,755 objects successfully but when I look at the disk size now it is using 3.7G. So what I thought would shrink it made it significantly larger. I tried running it again with
git repack -a d -f --window=250 --depth=250
but no changes to the size. The git prune command also didn’t appear to do anything. It took several days to clone this, so I would rather not start over.

Is there any way to go back to the smaller size, or any ideas anyone has on why repack made it bigger?

  • 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-23T22:09:34+00:00Added an answer on May 23, 2026 at 10:09 pm

    git-svn is a good way if you have to copy a repo from SVN to git, but honestly, it is better to work natively in git. That said, I’ve used this before and this is the best guide I found on the matter.

    Really, you may want to play around with the revision history you are importing by using the -r option. Also I did an:

    rm -r `find -type d -name .svn`
    

    to remove all the .svn folders. I don’t plan on commiting from git to svn, so that was good for me, but if you plan to use git locally and commit to your SVN repo, then you’ll have to do a little more research on the best way to do that.

    Also git-gc helps to compress objects. See if that helps reduce the size of your repo.

    Git is great so I hope you find you like it and switch over.

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

Sidebar

Related Questions

I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.