snipt

Ctrl+h for KB shortcuts

Bash

Roll back to a previous revision in Subversion

1
2
3
svn update
svn merge -r <current_revision>:<previous_revision> .
svn commit -m "Rolled back to <previous_revision>"
https://snipt.net/embed/c57cef74727cd13166ea5c64176c10ff/
/raw/c57cef74727cd13166ea5c64176c10ff/
c57cef74727cd13166ea5c64176c10ff
bash
Bash
3
2019-06-18T02:57:09
True
False
False
/api/public/snipt/105516/
roll-back-to-a-previous-revision-in-subversion
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn update </span><span id="L-2"><a name="L-2"></a>svn merge -r &lt;current_revision&gt;:&lt;previous_revision&gt; . </span><span id="L-3"><a name="L-3"></a>svn commit -m <span class="s2">&quot;Rolled back to &lt;previous_revision&gt;&quot;</span> </span></pre></div> </td></tr></table>
subversion