snipt

Ctrl+h for KB shortcuts

Bash

On Mac OS X you have to add the encrypted version of the user's password when using subversion with apache.

# as_root command arg file username password
sudo htpasswd -b passwd user userpassword
https://snipt.net/embed/f1b65b79bbe82fab33ccdced43b4c391/
/raw/f1b65b79bbe82fab33ccdced43b4c391/
f1b65b79bbe82fab33ccdced43b4c391
bash
Bash
2
2019-06-15T11:34:46
True
False
False
/api/public/snipt/2082/
on-mac-os-x-you-have-to-add-the-encrypted-version-of-the-users-password-when-using-subversion-with-apache
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># as_root command arg file username password</span> </span><span id="L-2"><a name="L-2"></a>sudo htpasswd -b passwd user userpassword </span></pre></div> </td></tr></table>
apache, encrypted, file, passwd, password, subversion, svn, users

Bash

set svn to ignore folder

svn propset svn:ignore bin .
https://snipt.net/embed/2edf293e4e7a6f0db4386352e76a86f5/
/raw/2edf293e4e7a6f0db4386352e76a86f5/
2edf293e4e7a6f0db4386352e76a86f5
bash
Bash
1
2019-06-15T12:57:03
True
False
False
/api/public/snipt/1945/
set-svn-to-ignore-folder
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn propset svn:ignore bin . </span></pre></div> </td></tr></table>
administration, ignore, svn

Text only

SVN commit with file as log message

$ svn commit -F msg foo.c
https://snipt.net/embed/08fe2182471aa1780bb83e98a9dffef7/
/raw/08fe2182471aa1780bb83e98a9dffef7/
08fe2182471aa1780bb83e98a9dffef7
text
Text only
1
2019-06-08T20:02:41
True
False
False
/api/public/snipt/1861/
svn-commit-with-file-as-log-message
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$ svn commit -F msg foo.c </span></pre></div> </td></tr></table>
commit, log, svn

Text only

TortoiseSVN Global Ignore Pattern Silverlight

*[Oo][Bb][Jj] *[Bb][Ii][Nn] */[Bb][Ii][Nn] */[Oo][Bb][Jj] *.g.cs *.[Cc]ache *.user *.xap *.suo
https://snipt.net/embed/ad57eb0dde8f5e781c73ae1905cee0fa/
/raw/ad57eb0dde8f5e781c73ae1905cee0fa/
ad57eb0dde8f5e781c73ae1905cee0fa
text
Text only
1
2019-06-15T06:46:27
True
False
False
/api/public/snipt/1707/
tortoisesvn-global-ignore-pattern-silverlight
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>*[Oo][Bb][Jj] *[Bb][Ii][Nn] */[Bb][Ii][Nn] */[Oo][Bb][Jj] *.g.cs *.[Cc]ache *.user *.xap *.suo </span></pre></div> </td></tr></table>
svn

Bash

edit commit log for svn

cd path/to/commit/path
svn propedit --revprop -r45119 svn:log
https://snipt.net/embed/c36ff75909c9e29248c127ed24246472/
/raw/c36ff75909c9e29248c127ed24246472/
c36ff75909c9e29248c127ed24246472
bash
Bash
2
2019-06-13T06:27:04
True
False
False
/api/public/snipt/1579/
edit-commit-log-for-svn
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nb">cd</span> path/to/commit/path </span><span id="L-2"><a name="L-2"></a>svn propedit --revprop -r45119 svn:log </span></pre></div> </td></tr></table>
scm, svn

Bash

delete .svn files/folders

find ./ -name ".svn" | xargs rm -Rf
https://snipt.net/embed/d8781cd48c3294c727b6c110f60a5927/
/raw/d8781cd48c3294c727b6c110f60a5927/
d8781cd48c3294c727b6c110f60a5927
bash
Bash
1
2019-06-02T01:59:15
True
False
False
/api/public/snipt/1166/
delete-svn-filesfolders
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>find ./ -name <span class="s2">&quot;.svn&quot;</span> <span class="p">|</span> xargs rm -Rf </span></pre></div> </td></tr></table>
svn

Bash

ignore all of the pyc files

svn propset svn:ignore '*.pyc' library/python
https://snipt.net/embed/37d6e79c2558f375dc5d65d4e1a11c8f/
/raw/37d6e79c2558f375dc5d65d4e1a11c8f/
37d6e79c2558f375dc5d65d4e1a11c8f
bash
Bash
1
2019-06-09T07:30:34
True
False
False
/api/public/snipt/1016/
ignore-all-of-the-pyc-files
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn propset svn:ignore <span class="s1">&#39;*.pyc&#39;</span> library/python </span></pre></div> </td></tr></table>
python, svn

Bash

ignore everything in the ext directory

svn propset svn:ignore '*' ext
https://snipt.net/embed/2cbb707d72517bdb8f6aef16934fddb8/
/raw/2cbb707d72517bdb8f6aef16934fddb8/
2cbb707d72517bdb8f6aef16934fddb8
bash
Bash
1
2019-06-03T02:37:47
True
False
False
/api/public/snipt/1015/
ignore-everything-in-the-ext-directory
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn propset svn:ignore <span class="s1">&#39;*&#39;</span> ext </span></pre></div> </td></tr></table>
svn

Text only

create unified diff

diff -u old_file.ext new_file.ext > changes.diff
https://snipt.net/embed/eb594caa12aafdeb80dcce1007172253/
/raw/eb594caa12aafdeb80dcce1007172253/
eb594caa12aafdeb80dcce1007172253
text
Text only
1
2019-06-09T07:34:29
True
False
False
/api/public/snipt/999/
create-patch
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>diff -u old_file.ext new_file.ext &gt; changes.diff </span></pre></div> </td></tr></table>
"unified diff", diff, patch, svn

Text only

start an svn git rep

git svn init http://myrepo
https://snipt.net/embed/23d4da8ae0c7dafb2b40470e22f56a90/
/raw/23d4da8ae0c7dafb2b40470e22f56a90/
23d4da8ae0c7dafb2b40470e22f56a90
text
Text only
1
2019-06-09T20:20:42
True
False
False
/api/public/snipt/837/
start-an-svn-git-rep
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>git svn init http://myrepo </span></pre></div> </td></tr></table>
git, svn