I had been successfully running the command git rebase main -i to rebase my work but out of the blue (or at least I didn't notice if I did anything to change the environment) I start getting the following error:
hint: Waiting for your editor to close the file... error: There was a problem with the editor ''/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/git/dist/scripts/git-editor.sh''.
All other git commands like git commit etc. work normally.
The only other search results I got from stackoverflow are: How can I fix git commit error "Waiting for your editor to close the file..." with VS Code? but that error was for git commit and I did try the suggestions in there like running:
git config --global core.editor "code --wait"
with both single and double quotes. Does anyone have any idea or suggestions on how to resolve this?
Based on the comments from @torek, I ran the following:
git config --global sequence.editor "nano -w"
and now everything is back to normal.
Update:
Unfortunately, I only just discovered after resolving a merge conflict that git rebase --continue still borks out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With