I don't often have to modify multiple commit messages, but it has happened once or twice and I don't ever remember seeing this. I hope someone else has. When I git rebase -i HEAD~7
, the expected list opens in vi exactly as expected. I change the pick
values to edit
where appropriate and then :wq
.
Could not execute editor
The core.editor
setting in my global .gitconfig
is vi
(I've also changed it to vim
in a wildly desperate move). I tried using mate
, but that didn't even open the initial list properly so I changed it back.
I'm using v1.7.3 and would welcome any suggestions.
git_editor "$TODO" || die_abort "Could not execute editor"
. Since you say the editor does actually come up, that means it's returning a nonzero exit code. Can you replicate that behavior using it normally on the command-line?git config --global core.editor "/usr/local/bin/vim"
fixed it for me.