0

使用“go get”,我输入以下命令:

 go get github.com/company/code

存储库是私有的。返回的错误是这样说的:

 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.

请注意,在第一行“致命”行中,URL 位置在 .com 和公司之间没有冒号。我不知道这是否重要。如果它很重要,我不知道去哪里改变它。我会很感激任何提示!

如果我让 git 列出遥控器,我会得到

$git remote -v
 origin git@github.com:Company/code.git (fetch)
 origin git@github.com:Company/code.git (push)

如果我使用 git 推送...

$git push
everything up-to-date

有任何想法吗?非常感谢您的帮助。

4

0 回答 0