Skip to content

Instantly share code, notes, and snippets.

View adovbos's full-sized avatar

Aleksandr Dovbos adovbos

  • Estonia, Ukraine
View GitHub Profile
@adovbos
adovbos / phpstorm-docker-git.md
Last active February 7, 2024 11:11
How to make PhpStorm work with git inside the docker

Sometimes I/You/We need to use git inside docker container. For example to launch a lint checks hook for php and js before creating commit. All paths in git hook will be directed to container executables because they should be contained inside the container. I hope I don't need to explain why.

And if that is your case and you want to use git in PhpStorm you are on right web page

And BTW, I'm sorry for my english and my bash skills :)

Long story short:

  1. We create executable file like 'my-executable' and give it +x rights.