現象 †
git commitすると
error: Terminal is dumb but no VISUAL nor EDITOR defined.
Please supply the message using either -m or -F option.
と表示されコミットできませんでした。
原因 †
- 環境変数VISUALやEDITORが設定されていないのが原因です。
対策1 †
- コメントをパラメータとして渡します。
1
|
| git commit -m "comment"
|
対策2 †
- 環境変数VISUALかEDITORを設定します。
msysgit用コマンドラインを起動するバッチ[git-cmd.bat]で一時的にセットします。
1
2
3
4
5
|
| [途中省略・・・]
@setlocal
[途中省略・・・]
@set EDITOR="C:\Program Files2\EmEditor\EmEditor.exe"
@start %COMSPEC%
|
検証時の環境 †
- Windows Vista Enterprise x86
参考 †