Home > Net >  git commit command execute as docker command (?!)
git commit command execute as docker command (?!)

Time:11-16

Try to commit changes, but get an error by docker

git commit -m "some"
no such service: php

I am not in docker container, try to use github desktop - same issue

CodePudding user response:

You have a pre-commit hook in the repository.

git commit --no-verify

allows to avoid it once. Or you can remove it completely from .git/hooks. Or you can install dependencies for the hook; php seems to be the 1st such dependency.

  • Related