snipt

Ctrl+h for KB shortcuts

Bash

delete a symfony module

$find . -path '*/.svn' -prune -o -type f -print | grep -i work | xargs svn --force rm
https://snipt.net/embed/a98d97fa85edbae5dae599bfa260e20f/
/raw/a98d97fa85edbae5dae599bfa260e20f/
a98d97fa85edbae5dae599bfa260e20f
bash
Bash
1
2019-07-11T00:08:34
True
False
False
/api/public/snipt/7608/
delete-a-symfony-module
<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><span class="nv">$find</span> . -path <span class="s1">&#39;*/.svn&#39;</span> -prune -o -type f -print <span class="p">|</span> grep -i work <span class="p">|</span> xargs svn --force rm </span></pre></div> </td></tr></table>
find, svn, symfony, sysadmin

Bash

remove .svn folders

cd /some/of/your/folders/
rm -rf `find . -type d -name .svn`
https://snipt.net/embed/6c6e9c3189bf6bd5abdded6bc7b0ab9d/
/raw/6c6e9c3189bf6bd5abdded6bc7b0ab9d/
6c6e9c3189bf6bd5abdded6bc7b0ab9d
bash
Bash
2
2019-07-04T17:44:30
True
False
False
/api/public/snipt/7512/
remove-svn-folders
<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> /some/of/your/folders/ </span><span id="L-2"><a name="L-2"></a>rm -rf <span class="sb">`</span>find . -type d -name .svn<span class="sb">`</span> </span></pre></div> </td></tr></table>
folders, remove, svn

Bash

Shows svn check ins for a specific user in a certain date range.

$ svn log -r {2009-07-09}:{2007-08-17}  | grep -a3 <username>
https://snipt.net/embed/401c7821dc62f278d5f07f55a06e0469/
/raw/401c7821dc62f278d5f07f55a06e0469/
401c7821dc62f278d5f07f55a06e0469
bash
Bash
1
2019-07-15T18:05:58
True
False
False
/api/public/snipt/7334/
shows-svn-check-ins-for-a-specific-user-in-a-certain-date-range
<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 log -r <span class="o">{</span>2009-07-09<span class="o">}</span>:<span class="o">{</span>2007-08-17<span class="o">}</span> <span class="p">|</span> grep -a3 &lt;username&gt; </span></pre></div> </td></tr></table>
date, log, range, svn, username

Bash

tar a folder excluding svn metadata

tar cvf sdk.tar --exclude=\.svn sdk/
https://snipt.net/embed/73663da644ac50233be55f708ed8d14e/
/raw/73663da644ac50233be55f708ed8d14e/
73663da644ac50233be55f708ed8d14e
bash
Bash
1
2019-07-21T03:36:36
True
False
False
/api/public/snipt/7248/
tar-a-folder-excluding-svn-metadata
<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>tar cvf sdk.tar --exclude<span class="o">=</span><span class="se">\.</span>svn sdk/ </span></pre></div> </td></tr></table>
bash, exclude, metadata, svn, tar

Bash

Rails SVN:Ignore DB setup (destructive to the DB!)

1
2
3
4
5
svn remove db/*.sqlite3
svn commit -m 'removing all tmp artifacts from subversion'
svn propset svn:ignore "*.sqlite3" db/
svn update db/
svn commit -m "ignore db/*.sqlite3 content from now on" 
https://snipt.net/embed/482f20fb52b09f6cc7971459b269733b/
/raw/482f20fb52b09f6cc7971459b269733b/
482f20fb52b09f6cc7971459b269733b
bash
Bash
5
2019-06-29T19:51:16
True
False
False
/api/public/snipt/6728/
rails-svnignore-db-setup-destructive-to-the-db
<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> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn remove db/*.sqlite3 </span><span id="L-2"><a name="L-2"></a>svn commit -m <span class="s1">&#39;removing all tmp artifacts from subversion&#39;</span> </span><span id="L-3"><a name="L-3"></a>svn propset svn:ignore <span class="s2">&quot;*.sqlite3&quot;</span> db/ </span><span id="L-4"><a name="L-4"></a>svn update db/ </span><span id="L-5"><a name="L-5"></a>svn commit -m <span class="s2">&quot;ignore db/*.sqlite3 content from now on&quot;</span> </span></pre></div> </td></tr></table>
bash, rails, svn

Bash

Delete all the .svn folders

find . -name .svn -exec rm -rf {} \;
https://snipt.net/embed/e2b0fb9ea1cd1fe27ed05fee34620386/
/raw/e2b0fb9ea1cd1fe27ed05fee34620386/
e2b0fb9ea1cd1fe27ed05fee34620386
bash
Bash
1
2019-07-21T04:23:58
True
False
False
/api/public/snipt/6208/
delete-all-the-svn-folders
<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 -exec rm -rf <span class="o">{}</span> <span class="se">\;</span> </span></pre></div> </td></tr></table>
mac, shel, svn

Text only

remove .svn directories

find . -name .svn -exec rm -rf {} \;
https://snipt.net/embed/f07e4e0e41da5a55165a561e50a98cf9/
/raw/f07e4e0e41da5a55165a561e50a98cf9/
f07e4e0e41da5a55165a561e50a98cf9
text
Text only
1
2019-07-21T18:12:29
True
False
False
/api/public/snipt/6008/
remove-svn-directories
<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 -exec rm -rf {} \; </span></pre></div> </td></tr></table>
shell, svn

Bash

Recursively remove all .svn directories

find . -name .svn -exec rm -rf {} \;
https://snipt.net/embed/4d5067083443d01f068c98e625bdc459/
/raw/4d5067083443d01f068c98e625bdc459/
4d5067083443d01f068c98e625bdc459
bash
Bash
1
2019-07-21T02:44:38
True
False
False
/api/public/snipt/5615/
recursively-remove-all-svn-directories-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 .svn -exec rm -rf <span class="o">{}</span> <span class="se">\;</span> </span></pre></div> </td></tr></table>
bash, osx, svn