1. tani-shi

    Posted

    tani-shi
Changes in title
+.stCommitMsg: No such file or directory
Changes in tags
Changes in body
Source | HTML | Preview
@@ -0,0 +1,24 @@
+`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を直接持ってきたのが原因かも