How to suppress the editor for `git rebase -continue`?

I often rebuild the interactive process to make tiny changes to the story (for example, deleting an empty line or editing a single line). In most cases, these changes are based on some expert review.

First, I make my change as follows:

git rebase --interactive 83bbeb27fcb1b5e164318fa17c55b7a38e5d3c9d~
# replace "pick" by "edit" on the first line
# modify code
git commit --all --amend --no-edit
git rebase --continue

If there are merge conflicts in one of the following commits, I resolve them and do this:

git rebase --continue
# the commit message is shown, but does not have to be changed, so I just save and exit the editor
git rebase --continue
# the commit message is shown, but does not have to be changed, so I just save and exit the editor
git rebase --continue
# the commit message is shown, but does not have to be changed, so I just save and exit the editor
...

Is there anything like an argument --no-editfor git rebase --continuethat avoids the editor (similarly git commit)?

+4
source share
1 answer

; (: GIT_EDITOR=true;git rebase --continue), .
( mac)

GIT_EDITOR=true;

GIT_EDITOR .

GIT_EDITOR=true git rebase --continue

GIT_EDITOR -, git.

+2

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


All Articles