1

First,this is NOT DUPLICATE from How to use Visual Studio Code as Default Editor for Git.

I followed that setup carefully but had other problem.

After I run git rebae -i HEAD~3,

It quickly prompts Successfully rebased and updated refs/heads/myBranch. without stopping for the middle steps, while left a unsaved empty git-rebase-todo file open.

enter image description here

It CAN open the core editor normally but it doesn't wait, but I DO add --wait in gitconfig.

enter image description here

Any one can help me out?

Tried set sublime 3 as core editor, no luck.

shin
  • 671
  • 6
  • 10
  • Interesting question don't see a mistake. One question is this local or global config. Maybe something in the other one? – ian Nov 04 '20 at 16:39
  • @ian Pretty sure this is global .gitconfig under ~ – shin Nov 05 '20 at 01:50
  • The question was more is there a local config? But a few things to test would be `code --help` and `git config --global -e` does it open in vs code and does the console wait? – ian Nov 05 '20 at 18:51
  • @ian I have checked there is no local config. This is a common problem among all my repositories. `code --help` seems to be an invalid command. `git config --global -e` does open the editor and wait. – shin Nov 09 '20 at 07:00
  • not sure about this. `code --help` not working suggests to me vs code is missing in path. but then `git config...` opening just fine in vs code. not sure how this works on mac. maybe try [add to path](https://code.visualstudio.com/docs/setup/mac) – ian Nov 09 '20 at 15:55

0 Answers0