git proxy

Agar git dapat menggunakan proxy, silahkan tambahkan config global, bukan Environment Variables!

git config –global http.proxy http://127.0.0.1:8118

Sejarahnya, saya lagi iseng pengen pake git via cmd,

D:\git\ci> git clone https://github.com/daylightstudio/FUEL-CMS.git
Cloning into 'FUEL-CMS'...
fatal: unable to access 'https://github.com/daylightstudio/FUEL-CMS.git/': Failed to connect to github.com port 4
 access

Coba set Environment Variables, ternyata tetap ngga mau:(

D:\git\ci> set HTTPS_PROXY=127.0.0.1:8118
D:\git\ci> set HTTP_PROXY=127.0.0.1:8118
D:\git\ci> git clone https://github.com/daylightstudio/FUEL-CMS.git
Cloning into ‘FUEL-CMS’…
fatal: unable to access ‘https://github.com/daylightstudio/FUEL-CMS.git/’: Failed to connect to github.com port 4
access

Solusinya, setelah baca di DuckDuckGo:
D:\git\ci> git config –global http.proxy http://127.0.0.1:8118
D:\git\ci> git config –global https.proxy http://127.0.0.1:8118
D:\git\ci> git clone https://github.com/daylightstudio/FUEL-CMS.git
Cloning into ‘FUEL-CMS’…
remote: Counting objects: 41560, done.
Receiving objects:  15% (6234/41560), 4.36 MiB | 110.00 KiB/s

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s