On Tue, May 19, 2009 at 06:50:11AM -0700, Alberto wrote:
> 
> Hi folks,
> 
> I´m trying to rename my commit message, but I haven't had success yet.
> Does anybody know how I can do that?
> 
> I´ve just tried to use git commit -c <commit> but the editor didn't
> open.
> 
> Thanks in advance,
> Alberto Leal

If you have already published (git push) your commits then you
cannot change the commits messages.  It will cause problems
for anyone downstream from you (or for you as well, if you've
ever checked the old history out to another location).


If you haven't published, then you can use
'git rebase --interactive' to change your commit messages.
Inside the editor change the 'pick' lines to 'edit' and then
you can 'git commit --amend' followed by
'git rebase --continue' for each commit you want to edit.

git rebase --interactive is awesome; just remember to never
rebase public/previously-published commits.

-- 

        David



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to