To use Nano as the inline terminal editor (I'm on a Mac)
git config --global core.editor "nano"
To use the Sublime Text Mac app
First add the path to the Mac App Sublime Text.app (where the bin subl is located) to your profile:
echo 'export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"' >> ~/.zprofile
Test it by opening a new terminal then running subl
in the terminal, the Sublime Text app should open.
Add subl
as your preferred text editor to your git profile
git config --global core.editor "subl -n -w"
Test it to make sure Sublime opens it and do a small edit, save
git commit --amend
View the change
git log --oneline
(Close and re-open the terminal if you are using Visual Studio Code with the embedded terminal)