his history:</p>
</div>
<div class="listingblock">
<div class="content">
<pre>     D--E--F--G--H
    /     /
A--B-----C</pre>
</div>
</div>
<div class="paragraph">
<p>To rewrite only commits D,E,F,G,H, but leave A, B and C alone, use:</p>
</div>
<div class="listingblock">
<div class="content">
<pre>git filter-branch ... C..H</pre>
</div>
</div>
<div class="paragraph">
<p>To rewrite commits E,F,G,H, use one of these:</p>
</div>
<div class="listingblock">
<div class="content">
<pre>git filter-branch ... C..H 