From 99021b767f991bba547c282f173f63cf997b58c3 Mon Sep 17 00:00:00 2001
From: Herbert Georg Fischer
+Companies often permit outgoing traffic only on the standard TCP ports 80 (HTTP)
+and 443 (HTTPS), blocking outgoing traffic on other ports, including TCP port 9418
+(git) and TCP port 22 (SSH).
+When using HTTPS instead of HTTP, git
enforces certificate validation by
+default, providing protection against man-in-the-middle, eavesdropping and tampering attacks.
+The go get
command therefore uses HTTPS for safety.
+
+If you use git
and prefer to push changes through SSH using your existing key
+it's easy to work around this. For GitHub, try one of these solutions:
+
+$ cd $GOPATH/src/github.com/username +$ git clone git@github.com:username/package.git ++
git push
to use the SSH
protocol by appending
+these two lines to ~/.gitconfig
:
++[url "git@github.com:"] + pushInsteadOf = https://github.com/ ++