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

The Archive Base Latest Questions

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

This is the scenario: I copied my subversion trunk into a tag A. I

  • 0

This is the scenario:

  • I copied my subversion trunk into a tag “A”.
  • I then ran ‘git svn fetch’ from my local repository which found the branch point and added it as the remote branch ‘svn/tags/A’.
  • Later I removed tag “A” from subversion, and again ran ‘git svn fetch’.
  • I did a ‘git branch -rd svn/tags/A’ to remove the dangling remote branch from my local repository.
  • At a later junction I created a new tag called “A” in my subversion repository. A ‘git svn fetch’ found the branch point but here’s the problem:

My local git repository thinks that ‘svn/tags/A’ points to the old commits from the deleted branch. I’ve spotted some references to ‘A’ in ‘.git/svn/svn/tags’, maybe they’re screwing with me. But when I fire up another git repository and remove those files before running ‘git svn fetch’ I still get ‘svn/tags/A’ pointing at the wrong commit.

Is there any way of clearing out a remote subversion branch and rereading it into my local git repository?

Edit: I’ve sort of gotten this to work, but I’m not really sure of the mechanics of it.
I moved out the references in ‘.git/svn/svn/tags’ to branch ‘A’, then did a ‘git svn reset -r 1000’, where r1000 was the commit immediately before the point I branched. Then did another ‘git svn fetch’ and it looks like it worked.
‘svn/tags/A’ now points to the new commit.

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

    git svn reset allows to change rev_map and refs/remotes/git-svn which would allow git to rebuild its reference to the new SVN tag.
    Note: git svn update does not exist.
    git svn rebase or better: first git svn fetch should be used here, with a potential git rebase --onto as mentioned in the documentation, if you did some work on the git side.

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

Sidebar

Related Questions

This is scenario that I ran into a few times: I copy some text
At this moment I use this scenario to load OpenGL texture from PNG: load
How would you test this scenario? I've just started looking into NHibernate and having
This scenario comes up often, now that I use LinkToSql and the classes it
Consider this scenario: I've an XML file called person.xml with the following data in
Consider this scenario. I have my own website, that I use as my identifier,
Consider this scenario. I have an object, lets call it.... Foo. Foo raises a
Is this scenario even possible? class Base { int someBaseMemer; }; template<class T> class
Imagine this scenario: You have a desktop and a laptop. The desktop has a
In this scenario, I have 2 or more models: class Store(models.Model): name = models.CharField(max_length

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.