Re: how to edit commit message in history
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jan 16, 2009, 11:18 UTC
- Message-ID
- <m34ozzzegn.fsf@localhost.localdomain>
- In-Reply-To
- <20090116035714.GA6984@b2j>
bill lam <cbill.lam@gmail.com> writes:
> I made some typos in commit messages, how to edit them without > affecting everything else?
If it is last commit that you want to edit, and if you didn't publish this commit to soem public repository, you can simply use
$ git commit --amend
If the commit is deeper in history, use "git rebase --interactive". If you published commit, you are out of luck.
See http://git.or.cz/gitwiki/GitTips
-- Jakub Narebski Poland ShadeHawk on #git