LoginSignup
5
2

More than 5 years have passed since last update.

.stCommitMsg: No such file or directory

Posted at

git commitしようとしたらこんなエラーが出た時の対処法

$ git commit
fatal: could not read '/Users/shintaro.tanikawa/.stCommitMsg': No such file or directory

~/.gitconfigの設定を削除する

$ git config --global --unset commit.template

commit成功

$ git commit
On branch master
Your branch is up-to-date with 'origin/master'.

nothing to commit, working tree clean

おそらく前のPCから.gitconfigを直接持ってきたのが原因かも

5
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2