Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you want to track ALL the remote svn branches, then the solution is as simple as:</p> <pre><code>git svn fetch </code></pre> <p>This will fetch ALL the remote branches that have not been fetched yet. </p> <p>Extra tip: if you checked out only the trunk at first, and later you want to track ALL branches, then edit <code>.git/config</code> to look like this and re-run <code>git svn fetch</code>:</p> <pre><code>[svn-remote "svn"] url = https://svn/path_to_repo_root/ fetch = path_to_trunk:refs/remotes/git-svn branches = path_to_branches/*:refs/remotes/* </code></pre> <p>The key points are <code>url</code> should point to the repository root, and the paths defined in <code>fetch</code> and <code>branches</code> should be relative to <code>url</code>. </p> <p>If you want to fetch only specific branches instead of ALL, there is a nice example in <code>git svn --help</code>:</p> <pre><code>[svn-remote "huge-project"] url = http://server.org/svn fetch = trunk/src:refs/remotes/trunk branches = branches/{red,green}/src:refs/remotes/branches/* tags = tags/{1.0,2.0}/src:refs/remotes/tags/* </code></pre> <p>With older versions of <code>git-svn</code>, once you specified branches like this, you might not be able to get new branches with <code>git svn fetch</code>. One workaround is adding more <code>fetch</code> lines, like this:</p> <pre><code>[svn-remote "huge-project"] url = http://server.org/svn fetch = trunk/src:refs/remotes/trunk fetch = branches/blue:refs/remotes/branches/blue fetch = branches/yellow:refs/remotes/branches/yellow branches = branches/{red,green}/src:refs/remotes/branches/* </code></pre> <p>Another workaround by @AndyEstes: edit <code>.git/svn/.metadata</code> and change the value of <code>branches-maxRev</code> or <code>tags-maxRev</code> to a revision before any newly-specified branches or tags were created. Once you've done this, run <code>git svn fetch</code> to track the new svn remote branch.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload