snipt

Ctrl+h for KB shortcuts

Bash

Remove all deleted files from svn

svn status | grep ! | cut -d " " -f 8 | xargs -n 1 svn rm --force
https://snipt.net/embed/0c8f5b88be56994040bac6e8682ffb79/
/raw/0c8f5b88be56994040bac6e8682ffb79/
0c8f5b88be56994040bac6e8682ffb79
bash
Bash
1
2019-06-25T12:43:49
True
False
False
/api/public/snipt/25517/
remove-all-deleted-files-from-svn
<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 status <span class="p">|</span> grep ! <span class="p">|</span> cut -d <span class="s2">&quot; &quot;</span> -f <span class="m">8</span> <span class="p">|</span> xargs -n <span class="m">1</span> svn rm --force </span></pre></div> </td></tr></table>
svn, xargs

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-09T17:48:45
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