Hass.io behind a proxy

I have hass.io installed on a debian 10. My internet connection is through a proxy. I have already configured the debian to be able to update it and also docker configure the proxy. But when I try to add a github repo to the store it doesn’t see the proxy.

~failed due to: exit code(128)
  cmdline: git clone --depth=1 --recursive --shallow-submodules -v https://github.com/esphome/hassio /data/addons/git/15ef4d2f
  stderr: 'Cloning into '/data/addons/git/15ef4d2f'...

How could I modify the configuration to proxy the git. I have already proxy for the environment and create the .gitconfig file with the proxy. But the hass website does not see that proxy. What should I do to make the entire hass.io system go to the internet using a parent proxy.
sorry for my englsih