1

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

2
  • 1
    Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Commented Nov 15, 2022 at 1:00
  • 2
    This is not a native git message. Check if you have any hooks activated in your repo (ls .git/hooks) Commented Nov 15, 2022 at 3:43

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.