Frastyawan Nym
Posted on • Edited on
Access your Golang Private Repository
Add your ssh to you git host
Update your GOPRIVATE
go env -w GOPRIVATE="github.com/<OrgNameHere>/*
"Update your gitconfig. This example for bitbucket:
git config --global url."git@bitbucket.org:".insteadOf "https://bitbucket.org/"
Add your ssh key with ssh-agent.You have to apply
eval"$(ssh-agent-s)"> Agent pid 5867ssh-add <private-ssh-key-file-name> // eg. id_rsa(not .pub)> Enter passphrasefor /home/you/.ssh/id_rsa:[] Identity added: /home/you/.ssh/id_rsa(/home/you/.ssh/id_rsa)
Try run
go mod tidy
on your project
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse