LoginSignup
6
3

More than 5 years have passed since last update.

Commit failed - exit code 1 receivedの対処法の忘備録

Last updated at Posted at 2019-04-17

対処法をググってもパッと理解できなかったので忘備録として残しておく。

経緯

laradockを自分のレポジトリ内にgit cloneしてcommitしようとしたら
Commit failed - exit code 1 received
が出てしまった。

原因

自分のレポジトリ内部の.git

git cloneしたlaradockディレクトリ内部の.git
が存在すること。

  • 例)自分のレポジトリrepoで、laradockをgit cloneすると
    • repo/.git
    • repo/laradock/.git
    • がrepo上に存在してしまってCommit failedが出てくる、という感じ

(だと思う)

対処

git cloneしたlaradockディレクトリ内部の.gitを削除する。

結果

commitできるようになった。

懺悔

お恥ずかしいことに、git cloneではない方法で導入する方法が公式ドキュメントに載っていましたね。
A.1) Already have a PHP project:

6
3
1

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
6
3