snipt

Ctrl+h for KB shortcuts

Bash

Git pre-commit hook for compiling SCSS

1
2
3
4
#!/bin/sh

scss -t compressed /path/to/css/style.scss /path/to/css/style.css
git add static/css/style.css
https://snipt.net/embed/c31441c31a16e85aa76a62fe3f055965/
/raw/c31441c31a16e85aa76a62fe3f055965/
c31441c31a16e85aa76a62fe3f055965
bash
Bash
4
2019-08-20T04:39:52
True
False
False
/api/public/snipt/55185/
git-pre-commit-for-compiling-scss
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="ch">#!/bin/sh</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>scss -t compressed /path/to/css/style.scss /path/to/css/style.css </span><span id="L-4"><a name="L-4"></a>git add static/css/style.css </span></pre></div> </td></tr></table>
git, sass, scss

Bash

Git merge (pull) from remote repo

git pull https://github.com/<user>/<repo> <branch>
https://snipt.net/embed/4a3231496d29c6cc041174cf2c1d47b3/
/raw/4a3231496d29c6cc041174cf2c1d47b3/
4a3231496d29c6cc041174cf2c1d47b3
bash
Bash
1
2019-08-20T00:27:00
True
False
False
/api/public/snipt/39506/
git-merge-pull-from-remote-repo
<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 pull https://github.com/&lt;user&gt;/&lt;repo&gt; &lt;branch&gt; </span></pre></div> </td></tr></table>
git

Bash

run gitk in background

gitk --all &
https://snipt.net/embed/8f6c97e9c95aa168dabc77b2c091be82/
/raw/8f6c97e9c95aa168dabc77b2c091be82/
8f6c97e9c95aa168dabc77b2c091be82
bash
Bash
1
2019-08-16T07:31:37
True
False
False
/api/public/snipt/3385/
run-gitk-in-background
<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>gitk --all <span class="p">&amp;</span> </span></pre></div> </td></tr></table>
git