<p>You can move commits around in an interactive rebase. Just create an empty commit, move it into place with rebase and edit it.</p>
<p>Sorry for top post, mobile gmail doesn&#39;t let you bottom post.</p>
<p><blockquote type="cite">On Jul 9, 2010 8:56 PM, &quot;Misha Koshelev&quot; &lt;<a href="mailto:misha680@gmail.com">misha680@gmail.com</a>&gt; wrote:<br><br>Dear All:<br>
<br>
I am still learning git and it seems that my solution does not quite<br>
work.<br>
<br>
Specifically, my idea was to use:<br>
git rebase -i upstream/master<br>
<br>
Mark the commit _after_ which I&#39;d like to insert a commit with edit.<br>
<br>
Then, when I am at that commit, I do:<br>
<br>
git commit --amend -a<br>
<br>
save commit<br>
<br>
Then, _before_ doing git rebase --continue, I edit files and again do:<br>
<br>
git commit -a -n<br>
<br>
Finally I do:<br>
<br>
git rebase --continue<br>
<br>
The problem is that this seems to squish further commits, and leads to<br>
problems which I am now trying to untangle.<br>
<br>
However, as I still cannot insert a commit, I am not sure how to<br>
proceed, except by creating a whole new repository.<br>
<br>
Any ideas/hints?<br>
<br>
Thank you<br>
<font color="#888888">Misha<br>
<br>
<br>
<br>
</font></blockquote></p>