Git command setting vscode as default editor

Hi guys
can anyone tell what’s the command for setting vscode as default editor on Mac using command line Mosh skipped that part in the course and I’m stuck.

Run the following in a terminal window to set VSCode as the default Git editor using the command line:

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

Source:
The Ultimate Git Course, “Getting Started” section, part 6 “Configuring Git” at 2:06 into the video.

1 Like