Git rebase stuck on Waiting for your editor to close the file

4.4k Views Asked by At

I'm using VS Code. I just executed

git rebase -i origin/master

which opened up the configuration window (for selecting which commits you want to work with) in a new VS Code instance. I changed one commit to the edit option, saved it, and closed that editor instance, but my terminal is still saying

hint: Waiting for your editor to close the file...

I tried restarting VS Code and went through this process again, and it's still doing the same thing. I didn't have issues yesterday with interactive rebasing, so I'm not sure what's happening.

Could someone advise?

Edit: After making this post, I just tried again and after running git rebase --abort, I now seem to be having a separate issue after executing git rebase -i origin/master:

hint: Waiting for your editor to close the file... Unable to connect to VS Code server.
Error in request
error: There was a problem with the editor 'code --wait --new-window'.
0

There are 0 best solutions below