"By default, Git uses whatever you’ve set as your default text editor via one of the shell environment variables VISUAL or EDITOR, or else falls back to the vi editor" --git config guide https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Confi...