* How to edit commit messages?
@ 2008-08-12 12:38 dr.chiarello
2008-08-12 12:45 ` Andreas Ericsson
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: dr.chiarello @ 2008-08-12 12:38 UTC (permalink / raw)
To: git
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.
Thanks in advance
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: How to edit commit messages?
2008-08-12 12:38 How to edit commit messages? dr.chiarello
@ 2008-08-12 12:45 ` Andreas Ericsson
2008-08-12 12:45 ` Miklos Vajna
2008-08-12 12:49 ` Matthieu Moy
2 siblings, 0 replies; 4+ messages in thread
From: Andreas Ericsson @ 2008-08-12 12:45 UTC (permalink / raw)
To: dr.chiarello; +Cc: git
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to edit commit messages?
2008-08-12 12:38 How to edit commit messages? dr.chiarello
2008-08-12 12:45 ` Andreas Ericsson
@ 2008-08-12 12:45 ` Miklos Vajna
2008-08-12 12:49 ` Matthieu Moy
2 siblings, 0 replies; 4+ messages in thread
From: Miklos Vajna @ 2008-08-12 12:45 UTC (permalink / raw)
To: dr.chiarello; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 221 bytes --]
On Tue, Aug 12, 2008 at 02:38:32PM +0200, dr.chiarello@gmail.com wrote:
> 1) interactively edit commit's messages (some or all)
git rebase -i
> 2) batch edit commit's messages (for example using sed)
git filter-branch
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to edit commit messages?
2008-08-12 12:38 How to edit commit messages? dr.chiarello
2008-08-12 12:45 ` Andreas Ericsson
2008-08-12 12:45 ` Miklos Vajna
@ 2008-08-12 12:49 ` Matthieu Moy
2 siblings, 0 replies; 4+ messages in thread
From: Matthieu Moy @ 2008-08-12 12:49 UTC (permalink / raw)
To: dr.chiarello; +Cc: git
dr.chiarello@gmail.com writes:
> Hi all,
> what are the best solution to:
> 1) interactively edit commit's messages (some or all)
git rebase -i
can help.
> 2) batch edit commit's messages (for example using sed)
git filter-branch --msg-filter sed 's/foo/bar/'
should do it.
--
Matthieu
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-12 12:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12 12:38 How to edit commit messages? dr.chiarello
2008-08-12 12:45 ` Andreas Ericsson
2008-08-12 12:45 ` Miklos Vajna
2008-08-12 12:49 ` Matthieu Moy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox