运行`sbt new`时验证失败

aga*_*gam 7 sbt giter8

这是迄今为止的成绩单:

$ sbt new lagom/lagom-scala.g8
[info] Loading global plugins from /Users/abrahma/.sbt/1.0/plugins
[info] Set current project to lagomlife (in build file:/Users/abrahma/Bitbucket/Practice-Scala/LagomLife/)
[info] Set current project to lagomlife (in build file:/Users/abrahma/Bitbucket/Practice-Scala/LagomLife/)

ssh://git@github.com/lagom/lagom-scala.g8.git: Auth fail
Run Code Online (Sandbox Code Playgroud)

我已经通过 GitHub 验证了身份验证:

$ ssh -T git@github.com
Hi agam! You've successfully authenticated, but GitHub does not provide shell access.
Run Code Online (Sandbox Code Playgroud)

还验证了我可以访问相关存储库(即我可以在单独的位置执行以下操作):

git clone ssh://git@github.com/lagom/lagom-scala.g8.git
Run Code Online (Sandbox Code Playgroud)

编辑: fwiw 我能够解决这里的任何根本原因:

git clone ssh://git@github.com/lagom/lagom-scala.g8.git
g8 file:///Users/abrahma/tmp/lagom-scala.g8
Run Code Online (Sandbox Code Playgroud)

ear*_*las 6

我也遇到了这个问题,并通过从~/.gitconfig中删除以下内容来解决它:

[url "git@github.com:"]
  insteadOf = https://github.com/
Run Code Online (Sandbox Code Playgroud)

  • 这对我有用,只是很烦人,因为我必须将其添加到我的“.gitconfig”文件中才能使其他 Go 进程正常工作。 (2认同)