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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:44:50+00:00 2026-05-15T06:44:50+00:00

I’m doing an internship and they are using SVN (although there has been some

  • 0

I’m doing an internship and they are using SVN (although there has been some discussion of moving to hg or git but that’s not in the immediate future). I like git so I would like to use git-svn to interact with the svn repository and be able to do local commits and branches and stuff like that (rebasing before committing to svn of course). However, there is one slight wrinkle, the svn repository layout is a little weird. It basically looks like this

/FOO
  +-branches
  +-tags
  +-trunk
    +-FOO
    +-myproject

Basically, my project has been stuck into a subdirectory of trunk, and there is another project that is also a subdirectory of the trunk. If I use git-svn and only clone the directory for my project instead of the root, will it get confused or cause any problems? I just wonder because the commit numbers are incremented for the entire repository and not just my project, so would commits be off or anything like that? I probably wouldn’t push any branches or tags to SVN because I’d prefer to just do those locally in git and I don’t know how git-svn deals with branches and tags anyway, and no one else uses them so I find little point in doing so. Thanks for the help!

  • 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-15T06:44:51+00:00Added an answer on May 15, 2026 at 6:44 am

    I use git-svn in a multi-project multi-platform svn repo.

    I usually just have the local git repo point directly at the svn repo directory that I’m interested in, and forego any native support for branches and so forth, though I hear good things about the support getting better. There seems to be git svn branch support in the git-core documentation.

    The way I do it:

    git svn init http://repo.farts.com/svn/path/to/the/directory/of/project
    git svn fetch
    

    And when its time to commit…

    git stash
    git svn rebase
    git stash pop
    git commit -am "Some really awesome stuff"
    git svn dcommit
    

    I’ve had no trouble with this. Popping the stash kicks off a merge if there have been changes to the code that you’ve rebased onto. Rebase keeps the history linear. There may be a better way to do this, but I’ve survived, with the above process plus git mergetool.

    You can also look at the custom layout options that come with git svn for designating where trunk, branches, and tags are in relation to each other. You can specify each of these separately with -T trunk -b branches -t tags — these are relative by default, but you can supply absolute paths.

    Also, as a word of advice, I would personally just use the SVN client depending on the sensitivity of the internship. I’m not being a member of good citizen of git-town by saying this, but source control can be a major pain in the ass, and also holy ground to people — if it causes a single ounce of inconvenience to anyone, its almost not worth it. That being said, if you can stay independent and not burden anyone with your tool choices, happy git’ing 😉

    Josh

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have just tried to save a simple *.rtf file with some websites and
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am currently running into a problem where an element is coming back from
I am trying to understand how to use SyndicationItem to display feed which is
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,

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.