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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:12:16+00:00 2026-05-23T16:12:16+00:00

For some time now I’ve been mirroring a Subversion repository to a Git repository.

  • 0

For some time now I’ve been mirroring a Subversion repository to a Git repository. Which has always worked fine. However, due to a crash of a virtual server and not having a backup I’ve got to setup the mirror again. The repository I need to track is almost 1200 commits big and contains a lot of files (which is the main reason for the Git mirror, as it’s so much faster to checkout a copy of the repo).

What I need to do now is make my freshly cloned Git mirror make track the Subversion repository again. I’ve got no problems adding the new remote ref but can’t seem to figure out how to be able to pull svn commits into the Git branch again.

One error I seem to receive is Unable to determine upstream SVN information from working tree history.

How can I re-enable mirroring a Subversion repository on a existing Git branch that’s only behind a couple commits from the Subversion repository?

  • 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-23T16:12:16+00:00Added an answer on May 23, 2026 at 4:12 pm

    The easiest way to get it to work again is to copy over the .git/svn directory from the original, as this is where extra svn metadata are tracked (assuming the git-svn config is the same).

    However, since you don’t have it try this:

    1. git svn init http://hostname/svn/repository with any other parameters you used before (maybe -s?)

    2. git checkout the latest commit from svn.

    3. Recreate the git-svn ref: git update-ref refs/remotes/git-svn HEAD (or if you used -s, this should be refs/remotes/trunk instead)

    4. Fetch the latest from svn since the current commit: git svn fetch --parent. This should rebuild git-svn metadata for your entire history.

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

Sidebar

Related Questions

I've been using FB Connect for some time now. The code below has worked
I've been using git for some time now on Windows (with msysGit) and I
I've been testing my app for some time now without any problems. However, today
I've been using git for some time now and understand how commits work, tags,
This one has been puzzling my for some time now. Let's imagine a class
This has been bugging me for some time now, I will greatly appreciate the
I've been using Ruby for quite some time now, however unlike PHP, as far
I have spent some time now to solve a problem for which i have
I've been a web developer for some time now, and have recently started learning
I've been using NSViewAnimation for some time now and I've read somewhere that Core

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.