Re: git-commit --amend -m "..." complains?!?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 1, 2007, 17:18 UTC
- Message-ID
- <7v8x8v5g2z.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <86643znxgz.fsf@lola.quinscape.zz>
David Kastrup <dak@gnu.org> writes:
Show 7 quoted lines
> I get > > Option -m cannot be combined with -c/-C/-F/--amend. > > but that makes no sense: of course there is ample reason for providing > an amended commit message on the command line. -c, -C and -F indeed > all provide an alternative commit message, but --amend doesn't.
The option --amend is about "reusing the original commit message and make amending edit on top". If you are restarting the message from scratch, --amend does not make much sense.
You can do:
$ git reset HEAD^
$ git commit -m "blah"if you do not want to reuse the commit message.