git commit command execute as docker command (?!)

Issue

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

Solution

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.

Answered By – phd

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published