At Thu, 29 Sep 2005 15:45:49 +0800, Kevin Leung wrote:as pointed out by others, if the tree is already public, do revert. otherwise, use git-cherry-pick and git-rebase might help. but it might not be a good idea. (don't know) to illustrate this, create the following tree c | b | a | initial git-init-db echo hello > hello.c git-update-index --add hello.c git-commit -v -m 'initial' echo a >> hello.c git-commit -a -m 'add a' echo b >> hello.c git-commit -a -m 'add b' echo c >> hello.c git-commit -a -m 'add c' say, you want to edit the commit message for 'add a'. first, create new branch at where you wanna change the message git checkout -b temp HEAD^^^ # hmm... HEAD^3 doesn't work cherry pick the 'add a' commit but don't commit yet git-cherry-pick -n master^^ commit the change with reediting the original commit log git commit --reedit master^^ rebase the _master_ to temp git-checkout master git-rebase temp I'm pretty sure that there is better way to do it and these should be easy to be scripted. my two cents, -- yashi - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Glauber de Oliveira Costa | [PATCH 5/25] [PATCH] native versions for system.h functions |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Chuck Ebbert | Why do so many machines need "noapic"? |
| Robert Hancock | Re: Disk spin down issue on shut down/suspend to disk |
git: | |
| David Kastrup | Empty directories... |
| Sean | Re: git and time |
| Martin Langhoff | Re: [PATCH 4/5] Overhaul of changeset application |
| Michael Witten | Re: Proposed git mv behavioral change |
| Bertram Scharpf | First install: Grub doesn't find partitions |
| Richard Stallman | Real men don't attack straw men |
| Tony Abernethy | Re: Important OpenBSD errata |
| Nuno Magalhães | Does CUPS depend on X?! [oB newbie] |
| hooanon05 | [PATCH 62/67] aufs magic sysrq handler |
| Avi Kivity | Re: [RFC] VM: I have a dream... |
| Alasdair G Kergon | Re: [dm-devel] Re: [PATCH 3/3] Add timeout feature |
| Miklos Szeredi | [PATCH] update ctime and mtime for mmaped write |
