Remove changes from fixing a larger bazaar

I am working on a feature of the industry in the bazaar. To create the project locally, I modified the file locally ( build ), although I do not want this change to be included in my commits. Most of the time I remember to exclude this file from bzr commit or interrupted while viewing the summary, but a few commits ago, I did not notice it, and now the local change went down in history.

Before sending my branch Id like to clean it. Is there a way to remove this change from an earlier commit without returning to the state before and re-executing all the commits? Naturally, this is due to the rewriting of history.

To clarify: In git, I would use git rebase -i and just edit the commit.

+4
source share
1 answer

The bzr-rewrite plugin provides the same functions as git rebase . It must be associated with installers for Windows and Mac OS X. For Linux, depending on your distribution, this may be a separate package.

EDIT: The bzr-rewrite plugin does not provide interactive mode, so it will not help in this situation.

+2
source

Source: https://habr.com/ru/post/1443419/


All Articles