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.

5
  • Interesting question don't see a mistake. One question is this local or global config. Maybe something in the other one? Commented Nov 4, 2020 at 16:39
  • @ian Pretty sure this is global .gitconfig under ~ Commented Nov 5, 2020 at 1: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? Commented Nov 5, 2020 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. Commented Nov 9, 2020 at 7: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 Commented Nov 9, 2020 at 15:55

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.