Skip to content

Instantly share code, notes, and snippets.

View reidrac's full-sized avatar

Juan J. Martínez reidrac

View GitHub Profile
@reidrac
reidrac / gist:eec4d91e712c37ae217ec71ed27a2e60
Created February 6, 2018 12:12 — forked from dmitshur/gist:6927554
How to `go get` private repos using SSH key auth instead of password auth.
$ ssh -A vm
$ git config --global url."git@github.com:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "git@github.com:"]
	insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!