You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
After checking multiple tutorials I had to take pieces from each of the following to get this to work on my Win10 system:
Basically it uses the steps from the first article, but under the background
path from the second article.
Neither article on its own worked for me.
Steps:
[Unit] | |
Description=vlmcsd | |
Wants=network.target | |
After=syslog.target | |
[Service] | |
Type=forking | |
PIDFile=/var/run/vlmcsd.pid | |
ExecStart=/usr/local/vlmcsd/vlmcsd -l /var/log/vlmcsd.log -p /var/run/vlmcsd.pid |
Package: com.site.tweakname | |
Version: 1.0.0 | |
Architecture: iphoneos-arm | |
Maintainer: YourName <YourEmail> | |
Filename: /TweakName.deb | |
Size: (size without ,'s') | |
MD5sum: xxxxxxxxxxxx | |
SHA1: xxxxxxxxxxxx | |
SHA256: xxxxxxxxxxxx | |
Section: (Folder Name) |
http://www.gstatic.com/images/icons/material/apps/weather/2x/wintry_mix_rain_snow_light_color_96dp.png | |
http://www.gstatic.com/images/icons/material/apps/weather/2x/haze_fog_dust_smoke_light_color_96dp.png | |
http://www.gstatic.com/images/icons/material/apps/weather/2x/cloudy_light_color_96dp.png | |
http://www.gstatic.com/images/icons/material/apps/weather/2x/snow_showers_snow_light_color_96dp.png | |
http://www.gstatic.com/images/icons/material/apps/weather/2x/flurries_light_color_96dp.png |
https/http 协议的执行:
# 设置 http 代理
git config --global https.proxy http://127.0.0.1:8080
# 或 socks5 代理
git config --global http.proxy socks5h://127.0.0.1:1080
# 取消代理
git config --global --unset http.proxy