I've written a script to automate a git rebase --interactive
to edit a specified commit using GIT_SEQUENCE_EDITOR=sed ...s/pick/edit/...
How do I prevent the "helpful" message that git rebase --interactive
prints out:
Stopped at 307c446... Add candy-text
You can amend the commit now, with
git commit --amend
Once you are satisfied with your changes, run
git rebase --continue
This message is printed to STDERR, and I still want to see any errors of the rebase
command itself and/or any {pre,post}-rebase
hooks, so 2>/dev/null
isn't an option.
From the git config documentation, I've tried:
git -c advice.statusHints=false rebase --quiet --interactive --autostash --autosquash "$commit"~
I've also tried disabling advice.resolveConflict
and advise.detachedHead
.
There don't seem to be any useful options under
rebase.*
.