2

If I do an interactive rebase using git rebase -i with the default editor configured for Git, everything works great.

If I add the following in my global .gitconfig...

[core] editor = 'C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe' 

...to configure VS Code as my default editor for git and then do git rebase -i, I get a launch VS Code during the interactive rebase, but it doesn't wait for me to edit the file. I see the git-rebase-todo file, then I see the commit hash get expanded to the full hash, then the pick line goes away, then the file is closed. Any idea how to tell VS Code to wait for me to edito the git-rebase-todo file before executing the rebase?

0

1 Answer 1

8

You must use the flag --wait when calling the vscode executable, e.g.

$ git config --global core.editor "code --wait" 

More details in the original answer.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks!! I was going crazy as the interactive editor that allows to select options was just closing and leaving rebase running, now after 'Start Rebase' VS Code opens COMMIT_EDITMSG file.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.