Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What is going on with this article?
@matyahiko2831

git commit時にhint: Waiting for your editor to close the file... mvim -f: mvim: command not found

More than 3 years have passed since last update.

git commitを行った際に下記エラーが発生。

hint: Waiting for your editor to close the file... mvim -f: mvim: command not found
error: There was a problem with the editor 'mvim -f'.
Please supply the message using either -m or -F option.

Gitがエディターを使おうとしてmvimなんてコマンドないっすと言われている。

解決方法

.gitconfigの設定を修正することで解決。

手順

# .gitconfigの内容を確認
$ less ~/.gitconfig
[core]
    excludesfile = /hogehoge/.gitignore_global
    editor = mvim ←こんな設定があるはず
    autocrlf = input
〜以下略〜

# 設定変更
$ git config --global core.editor vi

# .gitconfigが変更されていることを確認
$ less ~/.gitconfig 
2
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
matyahiko2831
インプットしたこと・考えたことを言語化する練習をしています!お気軽にコメントください♪

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
2
Help us understand the problem. What is going on with this article?