Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I know this question has been answered a while ago, but after reading it, I it might help adding examples of the specific git svn branch command and relate it to a typical workflow.</p> <p>Like kch answered, use <code>git svn branch</code>. Here is a full example, (note the <code>-n</code> for dry-run to test):</p> <pre><code>git svn branch -n -m "Branch for authentication bug" auth_bug </code></pre> <p>If this goes well, server replies with answer like this:</p> <blockquote> <p>Copying <a href="https://scm-server.com/svn/portal/trunk" rel="noreferrer">https://scm-server.com/svn/portal/trunk</a> at r8914 to <a href="https://scm-server.com/svn/portal/branches/auth_bug" rel="noreferrer">https://scm-server.com/svn/portal/branches/auth_bug</a>...</p> </blockquote> <p>And without the <code>-n</code> switch the server probably adds something like:</p> <blockquote> <p>Found possible branch point: <a href="https://scm-server.com/svn/portal/trunk" rel="noreferrer">https://scm-server.com/svn/portal/trunk</a> => <a href="https://scm-server.com/portal/branches/auth_bug" rel="noreferrer">https://scm-server.com/portal/branches/auth_bug</a>, 8914</p> <p>Found branch parent: (refs/remotes/auth_bug)</p> <p>d731b1fa028d30d685fe260f5bb912cbf59e1971</p> <p>Following parent with do_switch</p> <p>Successfully followed parent r8915 = 6ed10c57afcec62e9077fbeed74a326eaa4863b8</p> <p>(refs/remotes/auth_bug)</p> </blockquote> <p>The best part of it, now you can create a local branch based on your remote branch like so:</p> <pre><code>git checkout -b local/auth_bug auth_bug </code></pre> <p>Which means "check out and create local branch named <code>auth_bug</code> and make it follow the remote branch (last parameter) <code>auth_bug</code></p> <p>Test that your local branch works on that remote branch by using <code>dcommit</code> with <code>--dry-run</code> (<code>-n</code>):</p> <pre><code>git svn dcommit -n </code></pre> <p>And SVN server should reply with the new branch name:</p> <blockquote> <p>Committing to <a href="https://scm-server.com/svn/portal/branches/auth_bug" rel="noreferrer">https://scm-server.com/svn/portal/branches/auth_bug</a> ...</p> </blockquote>
 

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