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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:56:30+00:00 2026-05-22T14:56:30+00:00

I have since fixed this problem. But I still don’t know why what I

  • 0

I have since fixed this problem. But I still don’t know why what I did worked.

We have an svn repository for our code at work. I have a local git-svn repository because I <3 Git. 🙂 We use Windows, so I use Cygwin. I think the latest version in Cygwin is Git 1.7.0.4. On Friday, I dcommitted my code without a problem, went home. Monday morning I came back, and tried to ‘git svn rebase’ because someone had committed code over the weekend (overachievers).

It began normally, and then suddenly decided it couldn’t find the trunk. Unfortunately, I lost the exact error message, but it was yelling about not being about to find /refs/remotes/trunk …and I was very scared. Luckily, though, I had no uncommitted code. Nothing to lose. Nevertheless, every time I tried to ‘git svn rebase’ after that, it would hang forEVER, and then I would get the following error:

Unable to determine upstream SVN information from working tree history

I researched it for a whole day. I tried changing the svn-remote url from https://xxx.xxx.xxx/xxx/xxx to https://xxx.xxx.xxx/xxx/xxx/ as ridiculous as that seems. I then did a ‘git svn fetch’ … and it re-fetched the whole trunk (all 1682 commits). But the rebase still wouldn’t work. So I gave up for the day, and decided that the next day I would just create a new repository and start over (which would take a whole day). This morning, I went to ask the question on here before I went unabashedly deleting my repository. I came across this:

git-svn rebase gone horribly wrong

which wasn’t exactly my problem, but I decided to try ‘git reset –hard trunk’ because that’s what I wanted. And it worked. Everything is fine now.

However.

Why did it do that in the first place? I didn’t change anything as far as I know, as I was not at work over the weekend. What kind of things would have caused that error? I assume I absent-mindedly did something awful, but I need to know what so I don’t do it again. 🙂

Thanks in advance.

  • 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-22T14:56:30+00:00Added an answer on May 22, 2026 at 2:56 pm

    This error:

    Unable to determine upstream SVN information from working tree history
    

    Sounds like your current git history was not based on the svn history at all, and thus rebase couldn’t find a common ancestor.

    By changing the URL, I think all the commits have SLIGHTLY different commit messages, and therefore different sha1 hashes, and therefore your old ancestors do not match the new ones, causing rebase to fail.

    As to why trunk disappeared/failed, it would be pretty hard to understand what happened without the error message.

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

Sidebar

Related Questions

I spoke about this in a previous question, but I have since narrowed down
Since I have started using this site, I keep hearing about the Boost library.
This is my 2nd attempt at getting this fixed! I fixed the first problem
i have this problem: user can add an HTML description and it will be
Was using Java Timer, Then switched to ScheduledExecutorService, but my problem is not fixed.
I installed TeamCity and got it working against my project. However, I have since
I have long since forgotten the password for the root user on one of
Sessions in PHP seemed to have changed since the last time I used them,
I want a Python object that will monitor whether other objects have changed since
I have been programming since 1999 for work and fun. I want to learn

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.