export GOPRIVATE=github.com/yourorg/yourrepo1,github.com/yourorg/yourrepo2Let's say, you had the hostname r1.github.com for the yourrepo1
(when creating a deploy key for yourrepo1) and r2.github.com for
the yourrepo2 (when creating a deploy key for yourrepo2)
[url "ssh://[email protected]/yourorg/yourrepo1"]
insteadOf = https://github.com/yourorg/yourrepo1
[url "ssh://[email protected]/yourorg/yourrepo2"]
insteadOf = https://github.com/yourorg/yourrepo2
This should be inside your ~/.gitconfig.
git config --global url."ssh://[email protected]/yourorg/yourrepo1".insteadOf "https://github.com/yourorg/yourrepo1"
git config --global url."ssh://[email protected]/yourorg/yourrepo2".insteadOf "https://github.com/yourorg/yourrepo2"