How to use git

David Bariod davidriod at googlemail.com
Mon Aug 22 02:09:54 PDT 2016


On Mon, Aug 22, 2016 at 10:57 AM, Mojca Miklavec <mojca at macports.org> wrote:

> On 20 August 2016 at 02:19, Ryan Schmidt wrote:
> >
> > https://trac.macports.org/wiki/WorkingWithGit
>
> We should add this:
>     http://stackoverflow.com/questions/927358/how-to-undo-
> last-commits-in-git#927386
> to:
>     https://trac.macports.org/wiki/WorkingWithGit#revert
>
> Currently the third paragraph sounds scary and it doesn't have to be.
>
> I use "git reset HEAD~" all the time to fix commit messages or to fix
> whatever I screwed up in the last commit.
>

Don't you find git commit --amend easier for such purpose ?

--
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20160822/775efd0d/attachment.html>


More information about the macports-dev mailing list