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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:58:55+00:00 2026-06-16T21:58:55+00:00

I am working on a project with a team. They use SVN, but I

  • 0

I am working on a project with a team. They use SVN, but I prefer git. While I could do this more easily by simply getting better at SVN – I’d prefer to make my life complicated and use Git.

Here is their setup:

  ~/www(svn)
   |       \
trunk(svn)  mybranch(svn)

I would like to have

/srv/git/www 

with branches trunk and mybranch

when I do git pull inside the /srv/git/www while on the trunk branch I would just love it if a script ran svn update on ~/www/trunk and update the git branch with any svn commits (so that the git history and commit messages matches the svn and commit messages)

it would do the same behavior on git pull on the git mybranch branch

My workflow would then be

git checkout trunk
git pull
git checkout mybranch
git rebase trunk

do some work

(if trunk hasn’t been updated since I pulled on it):

git commit 
git push
git checkout trunk
git merge mybranch
git push

I would love it if a git hook would then trigger svn commit whenever code is pushed to either of those branches.

Please offer any advice. I initially tried just using SVN – but am so frustrated by it locking, and having to re-checkout whenever a merge goes bad that I’m super annoyed with SVN.

If anyone has a better model for doing this, please tell me. Otherwise it would be outstanding if you could point me in the direction of how to do it with git! I know there is a git svn command, but I don’t trust it – I was hoping the above is safer (albeit it seems a little insane to me.)

Thank you!

  • 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-16T21:58:56+00:00Added an answer on June 16, 2026 at 9:58 pm

    You’ve described how SubGit works. Since 2.0 it allows a bi-directional translation between Git and SVN using pre-receive Git hook (that is executed on ‘git push’). To do that run on your machine

    $ subgit configure --svn-url <URL_of_repository_root> repo.git
    $ #adjust repo.git/subgit/{config,passwd,authors.txt} to set auth options, branches to translate and SVN<->Git authors mapping
    $ subgit install repo.git
    

    Then clone repo.git (even if it’s on the same machine just to make ‘pre-receive’ hook work)

    $ git clone repo.git myproject
    $ cd myproject
    $ #do something with master
    $ git push origin master
    

    Every new commit reachable from ‘master’ will be translated to a commit in SVN. By default the same is true for other branches.

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

Sidebar

Related Questions

Our team is currently working on a large project which makes heavy use of
I'm working on a website project w/ a team. And they started the code,
I've been working on a project for my team at work to use. The
My team is working on a conversion project to convert one product (but with
I'm working on a Git-versioned Android project with a team in my lab. One
We use SVN at work (ie. this is not an open-source project) and have
In the project my team is currently working on, we're modifying a commercial PHP
My team working in a project using Winforms application(c#) & MSSQL 2005 as database.
I am currently working on a rather large project with a team distributed across
My team working on a php/MySQL website for a school project. I have a

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.