简体   繁体   中英

git commit command execute as docker command (?!)

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM