git commit --amend --author="xxxxxx <xxx@example.com>" というコマンドを実行したときに、下記のエラーメッセージが表示され、期待した動作が実行されませんでした。
|
1 2 3 4 |
error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option. |
このエラーは下記のコマンドを実行することで解消されました。
|
1 2 |
git config --global core.editor /usr/bin/vim |
git で利用するエディターが Vim ではなく、Vi となっていたことが原因のようです。