Using "go get", I enter this command:
go get github.com/company/code
The repository is private. The error that comes back says this:
go get: module github.com/company/code: git ls-remote -q origin in /Users/myusername/go/pkg/mod/cache/vcs/d3459c3c5732de488c7de6ddbb96dcbb5d3c220735157c316a37c431326e9181: exit status 128:
fatal: 'git@github.comcompany/code' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Note on the first "fatal" line that the URL location does not have a colon between .com and company. I don't know whether that's significant. If it is significant, I don't know where to go to change it. I'd appreciate any tips!
If I ask git to list the remotes, I get
$git remote -v
origin git@github.com:Company/code.git (fetch)
origin git@github.com:Company/code.git (push)
If I push using git ...
$git push
everything up-to-date
Any ideas? Many thanks for your help.