Choose editor for commit messages and interactive rebase.
Section: Setup and Configuration
Set default editor
bash
bash
git config --global core.editor "code --wait"Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Setup and Configuration