snipt

Ctrl+h for KB shortcuts

Bash

Correct permissions for svn files in project

1
2
3
find -name .svn -exec sudo chmod 775 {} \;
find $(find -name .svn) -type d -exec sudo chmod 775 {} \;
find $(find -name .svn) ! -type d -exec sudo chmod 664 {} \;
https://snipt.net/embed/898e3c18a6e049df390f9cc322ea4fa9/
/raw/898e3c18a6e049df390f9cc322ea4fa9/
898e3c18a6e049df390f9cc322ea4fa9
bash
Bash
3
2019-08-14T06:18:25
True
False
False
/api/public/snipt/12525/
correct-permissions-for-svn-files-in-project
<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>find -name .svn -exec sudo chmod <span class="m">775</span> <span class="o">{}</span> <span class="se">\;</span> </span><span id="L-2"><a name="L-2"></a>find <span class="k">$(</span>find -name .svn<span class="k">)</span> -type d -exec sudo chmod <span class="m">775</span> <span class="o">{}</span> <span class="se">\;</span> </span><span id="L-3"><a name="L-3"></a>find <span class="k">$(</span>find -name .svn<span class="k">)</span> ! -type d -exec sudo chmod <span class="m">664</span> <span class="o">{}</span> <span class="se">\;</span> </span></pre></div> </td></tr></table>
bash, cmd, linux, permission, svn

Bash

Copy all .svn directories recursively to /tmp/svn with their dir structure

find -name .svn -print | xargs -n1 -i cp -R --parents {} /tmp/svn
https://snipt.net/embed/52134576db00b67c0944fae411764a88/
/raw/52134576db00b67c0944fae411764a88/
52134576db00b67c0944fae411764a88
bash
Bash
1
2019-08-18T07:41:07
True
False
False
/api/public/snipt/11559/
copy-all-svn-directories-recursively-to-tmpsvn-with-their-dir-structure
<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 .svn -print <span class="p">|</span> xargs -n1 -i cp -R --parents <span class="o">{}</span> /tmp/svn </span></pre></div> </td></tr></table>
bash, cmd, linux, svn

Bash

remove .svn folders

find . -name ".svn" -type d -exec rm -rf {} \;
https://snipt.net/embed/f933eede5bf93acc3512b26e3189716d/
/raw/f933eede5bf93acc3512b26e3189716d/
f933eede5bf93acc3512b26e3189716d
bash
Bash
2
2019-08-16T06:28:22
True
False
False
/api/public/snipt/11144/
remove-svn-folders-1
<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> -type d -exec rm -rf <span class="o">{}</span> <span class="se">\;</span> </span></pre></div> </td></tr></table>
bash, development, production, server, svn

Bash

svn:ignore

1
2
3
svn propset svn:ignore dirname .

# If you have multiple things to ignore, separate by newlines in the property value. In that case it's easier to edit the property value using an external editor:
https://snipt.net/embed/a22a749d8aea68798930ff5fafabf32b/
/raw/a22a749d8aea68798930ff5fafabf32b/
a22a749d8aea68798930ff5fafabf32b
bash
Bash
3
2019-08-20T06:37:15
True
False
False
/api/public/snipt/10921/
svnignore
<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 propset svn:ignore dirname . </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c1"># If you have multiple things to ignore, separate by newlines in the property value. In that case it&#39;s easier to edit the property value using an external editor:</span> </span></pre></div> </td></tr></table>
svn