Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch
エラー内容
gitでリモートのブランチをpullすると、下記のエラーが出ました。
コミットメッセージを入れてください、と書いてあります。
エラーかと思いましたが、ちがいました。
Merge branch 'master' of github.com:xxx/ first # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Type :quit<Enter> to exit Vim
解決方法
コミットメッセージを入力する もしくは コミットを中断する
コミットメッセージを入力する
- 「i」を押す(INSERT(挿入)を意味する)
- コミットメッセージを書く
- 「esc」を押す
- 「:wq」と入力
- Enterキーを押す
コミットを中断する
- 「:quit」と入力
- Enterキーを押す