<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 22, 2016 at 10:57 AM, Mojca Miklavec <span dir="ltr">&lt;<a href="mailto:mojca@macports.org" target="_blank">mojca@macports.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 20 August 2016 at 02:19, Ryan Schmidt wrote:<br>
&gt;<br>
&gt; <a href="https://trac.macports.org/wiki/WorkingWithGit" rel="noreferrer" target="_blank">https://trac.macports.org/<wbr>wiki/WorkingWithGit</a><br>
<br>
We should add this:<br>
    <a href="http://stackoverflow.com/questions/927358/how-to-undo-last-commits-in-git#927386" rel="noreferrer" target="_blank">http://stackoverflow.com/<wbr>questions/927358/how-to-undo-<wbr>last-commits-in-git#927386</a><br>
to:<br>
    <a href="https://trac.macports.org/wiki/WorkingWithGit#revert" rel="noreferrer" target="_blank">https://trac.macports.org/<wbr>wiki/WorkingWithGit#revert</a><br>
<br>
Currently the third paragraph sounds scary and it doesn&#39;t have to be.<br>
<br>
I use &quot;git reset HEAD~&quot; all the time to fix commit messages or to fix<br>
whatever I screwed up in the last commit.<br>
</blockquote><div><br></div><div>Don&#39;t you find git commit --amend easier for such purpose ?<br><br>--<br></div><div>David <br></div></div><br></div></div>