Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash

Reset git repo to last commit

git reset HEAD --hard
git clean -fd
https://snipt.net/embed/67db1d0c1247a58258f9e01787738035/
https://snipt.net/raw/67db1d0c1247a58258f9e01787738035/
67db1d0c1247a58258f9e01787738035
bash
Bash
2
2016-12-08T04:40:08
True
False
False
Sep 05, 2012 at 04:35 AM
/api/public/snipt/46710/
reset-git-repo-to-last-commit
<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>git reset HEAD --hard </span><span id="L-2"><a name="L-2"></a>git clean -fd </span></pre></div> </td></tr></table>
commit, git, reset
Copyrighted, illegal, or inappropriate content? Email [email protected].