ection"><a href="git-howto.html#toc-Reverting-broken-commits">4.1 Reverting broken commits</a></h2>

<div class="example">
<pre class="example">git reset &lt;commit&gt;
</pre></div>

<p><code>git reset</code> will uncommit the changes till <var>&lt;commit&gt;</var> rewriting
the current branch history.
</p>
<div class="example">
<pre class="example">git commit --amend
</pre></div>

<p>allows one to amend the last commit details quickly.
</p>
<div class="example">
<pre class="example">git rebase -i origin/ma