Re: How to edit commit messages?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dr.chiarello@xxxxxxxxx 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@xxxxxx
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux