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:
- We create executable file like 'my-executable' and give it +x rights.