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 5867 ssh-add <private-ssh-key-file-name> // eg. id_rsa (not .pub) > Enter passphrase for /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
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)