Using git client from docker

Instead of installing git on my machine, I am using the alpine/git docker image. I put the following in my .zshrc file:

```

function git () {
(docker run -ti --rm -v ${HOME}:/root -v $(pwd):/git alpine/git "$@")
}

```

And from the command line I can use git normally: `git clone ....`

However, in WebStorm it says it can't find git. How can I point it to use that?

I tried putting `(docker run -ti --rm -v ${HOME}:/root -v $(pwd):/git alpine/git "$@")` in "Path to git executable" but that didn't help.

Thanks!

 

0
1 comment

Using Git installed in a container is not currently supported, please vote for https://youtrack.jetbrains.com/issue/IDEA-143172 to be notified on any progress with this feature

0

Please sign in to leave a comment.