snipt

Ctrl+h for KB shortcuts

Bash

Revert to the Previous Commit

$ git reset --hard HEAD^
https://snipt.net/embed/5800d1ecc4aed091ec2751c8be86b5ea/
/raw/5800d1ecc4aed091ec2751c8be86b5ea/
5800d1ecc4aed091ec2751c8be86b5ea
bash
Bash
1
2019-07-23T04:03:13
True
False
False
Jul 23, 2013 at 09:53 PM
/api/public/snipt/69257/
revert-to-the-previous-commit
<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 reset --hard HEAD^ </span></pre></div> </td></tr></table>
git