snipt

Ctrl+h for KB shortcuts

Text only

hackpush

1
2
3
4
5
CURRENT=`git branch | grep '\*' | awk '{print $2}'`
git checkout master
git merge ${CURRENT}
git push origin master
git checkout ${CURRENT}
https://snipt.net/embed/8e41eba11ecc86e73693cd88e8d9ab5d/
/raw/8e41eba11ecc86e73693cd88e8d9ab5d/
8e41eba11ecc86e73693cd88e8d9ab5d
text
Text only
5
2019-06-25T00:58:29
True
False
False
/api/public/snipt/5839/
hackpush
<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>CURRENT=`git branch | grep &#39;\*&#39; | awk &#39;{print $2}&#39;` </span><span id="L-2"><a name="L-2"></a>git checkout master </span><span id="L-3"><a name="L-3"></a>git merge ${CURRENT} </span><span id="L-4"><a name="L-4"></a>git push origin master </span><span id="L-5"><a name="L-5"></a>git checkout ${CURRENT} </span></pre></div> </td></tr></table>
git