From: Andreas Ericsson <ae@op5.se>
To: dr.chiarello@gmail.com
Cc: git@vger.kernel.org
Subject: Re: How to edit commit messages?
Date: Tue, 12 Aug 2008 14:45:04 +0200 [thread overview]
Message-ID: <48A185D0.3070003@op5.se> (raw)
In-Reply-To: <g7s088$o1p$1@ger.gmane.org>
dr.chiarello@gmail.com wrote:
> Hi all,
> what are the best solution to:
> 1) interactively edit commit's messages (some or all)
> 2) batch edit commit's messages (for example using sed)
>
> My repo is not published yet, so there is no problem in rewriting all
> history.
>
git filter-branch --msg-filter 'sed s/foo/bar/g' master
to replace all occurrences of foo with bar in all commit
messages for all commits made on the master branch.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
next prev parent reply other threads:[~2008-08-12 12:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-12 12:38 How to edit commit messages? dr.chiarello
2008-08-12 12:45 ` Andreas Ericsson [this message]
2008-08-12 12:45 ` Miklos Vajna
2008-08-12 12:49 ` Matthieu Moy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48A185D0.3070003@op5.se \
--to=ae@op5.se \
--cc=dr.chiarello@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox