[Sugar-devel] Git commit comment mistake

Chris Ball cjb at laptop.org
Fri Jul 24 15:46:36 EDT 2009


Hi,

   >> Is there a way to fix the comment?

   > Sure. git-commit --amend, per
   > http://www.kernel.org/pub/software/scm/git/docs/git-commit.html

That's only going to work for commits that haven't been pushed yet;
once you've pushed something, GIT won't let you transparently rewrite
it later without --force, and that's bad form on a shared repository.
(Because it can break subsequent pulls for clients that already have
a checkout.)

I'd just make a new commit that corrects the comment, if you think
that's justified.

- Chris.
-- 
Chris Ball   <cjb at laptop.org>


More information about the Sugar-devel mailing list