What is better way to remove commit from history?

James Westby jw+debian at jameswestby.net
Tue Mar 18 11:31:54 GMT 2008


On Tue, 2008-03-18 at 13:01 +0200, Alexander Belchenko wrote:
> I have some branch where I commit wrong thing. After that I have 5 another commits.
> And only then I realize that committed file is completely wrong therefore
> should not be used in real work.
> 
> I'd like to cleanup history of my branch (rewrite it) to remove that wrong commit.
> What is the best way to do this? rebase? loom?

rebase is the strategy to use I think.

Unfortunately I can't give you exact instructions of how to do it with
the bzr-rebase tool, sorry.

Thanks,

James





More information about the bazaar mailing list