You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background: go get will fail for private repos which require a username and password to pull. One workaround is adding some configuration in ~/.gitconfig:
Using Golang 1.7.5
Background:
go get
will fail for private repos which require a username and password to pull. One workaround is adding some configuration in~/.gitconfig
:[url "ssh://[email protected]/"] insteadOf = https://github.PRIVATE.com/
or:
[url "https://${TOKEN}:[email protected]/"] insteadOf = https://github.PRIVATE.com/
This is nice. However,
go get
will ignore the same local setting in./.git/config
in the currect directory.Story: As a CLI user under Git, I should be able to define
--local
rules forget
ing private packages from GithubTo duplicate this issue:
go get github.PRIVATE.com/MY/REPO
, expect failgit config --local url."ssh://[email protected]/".insteadOf "https://github.PRIVATE.com/"
go get github.PRIVATE.com/MY/REPO
, expect failgit config --global url."ssh://[email protected]/".insteadOf "https://github.PRIVATE.com/"
go get github.PRIVATE.com/MY/REPO
, expect to workThe text was updated successfully, but these errors were encountered: