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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:42:30+00:00 2026-06-12T06:42:30+00:00

I have been using git-svn lately to manage an old svn repository through git.

  • 0

I have been using git-svn lately to manage an old svn repository through git.

I have recently been working in a branch that i created like this:
git checkout -b local-branch svn-branch

I have then since been working in that branch and commiting back to the svn-branch using:
git svn dcommit

Now that it’s time to merge the local-branch back to master i tried to do the following:
git checkout master
git merge local-branch

So far, so good. Now i want to commit the merge back to subversion so i try this:
git svn dcommit

However, now my master is committing back to the svn-branch branch and not the trunk as i would have expected. Is there something i missed or is this kind of merging just not recommended to merge between svn branches like this?

As a side note, i instead did the merging through svn, but i would like to avoid having to use svn as much as possible. What is the preferred way to handle this?

  • 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-06-12T06:42:32+00:00Added an answer on June 12, 2026 at 6:42 am

    git svn dcommit always sends changes to the url specified in git-svn-id signature that is the latest by first-parent chain of commits in HEAD’s history.

    I suppose, your merge was fast-forwarded (i.e. master reference was reachable from local-branch/svn-branch), so it was just set to local-branch by “git merge” instead of merge commit creation.

    As a recommendation always use –no-ff option with “git merge” because Subversion has no such concept as fast-forward merge. (you can set this option (merge.ff=true) as default in config [ or branch.master.mergeoptions to “–no-ff” for Git < 1.7.6] but note that “git pull” will become non-fast-forward too if you use more than 1 remote)

    And in order to avoid SVN and/or git-svn: if you have an access to your repository server, you may have a look at SubGit project that provides pure Git (not git-svn) interface to Subversion. Even in the case of SubGit –no-ff option is strongly recommended because fast-forward merge (and fast-forward rebase) cannot be distinguished from branch removal and recreation from another commit (this is true for any Git<->SVN translation tool).

    But maybe any other reason (I don’t know any other) caused “git-svn-id” with branch URL (instead of trunk URL) in the latest commit message. Anyway make sure that master points to a correct commit.

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

Sidebar

Related Questions

I'm using git-svn to work with an SVN repository. My working copies have been
I have a git repository that was originally created using git-svn. Now I have
We have been using gforge server for cvs/svn. Now we are moving to git.
Some Background I have been using Git for a while now. The projects that
I have been using git-svn to work remotely on a spike for a new
I have been using git and git-svn for a while now but we have
I have only one branch. For a few months I have been using git
I have been using both git and svn for quite some time now, and
I have been using git and github with my small team of developers for
I have been using Git for my version control for a while now, but

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.