git commit --amend choose editor

C++
git config --global core.editor "/bin/nano"
Source

Also in C++: