To do a git commit with my own editor (Visual Code)
I needed to setup the editor like this:
git config --global --replace-all core.editor "code -w"
I was searching for this a long time and found out the -w
was missing after code.
Without StackOverflow I would probably never know this. Can you explain me a little bit how I can solve such problem. In git config --help
or the documentation of git I coulnd't find anything about the -w
at the end.
Where did people on StackOverflow found about this?