how to set up default editor git amend code example Example: set git editor $ git config --global core.editor vim