0

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?

Jeremy Foster
  • 4,405
  • 2
  • 24
  • 44

1 Answers1

2

Did you searched on stackoverflow before asking?

There are some answers like :

https://stackoverflow.com/a/36644561/717372

You must use the flag --wait when calling the executable.

Philippe
  • 21,230
  • 5
  • 41
  • 62