how to change default git commit editor code example Example: git commit --amend choose editor git config --global core.editor "/bin/nano"