How can I use git in plugins/docker?

I want to use git submodule command in plugins/docker.
Is there a way to run a git command in the same as using netrc authentication in plugins/docker?