Skip to content

Instantly share code, notes, and snippets.

@m-tmatma
Last active December 28, 2020 00:11
Show Gist options
  • Save m-tmatma/6e9aa09d785a622b9983a2b11b5d2e9b to your computer and use it in GitHub Desktop.
Save m-tmatma/6e9aa09d785a622b9983a2b11b5d2e9b to your computer and use it in GitHub Desktop.
yocto-proxy.sh
#!/bin/sh -e
proxy_url=$http_proxy
if [ -z "$proxy_url" ]; then
git config --global http.proxy ""
git config --global https.proxy ""
else
git config --global http.proxy $proxy_url
git config --global https.proxy $proxy_url
fi
git config --global url."https://".insteadOf git://
git config --global --list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment