go 拉取 gitcode.com 私有 mod

go 拉取 gitcode.com 私有 mod

💡 原文中文,约500字,阅读约需2分钟。
📝

内容提要

在gitcode托管的项目中,无法拉取代码。需配置git使用ssh协议,执行命令`git config --global url."ssh://git@gitcode.com".insteadOf "https://gitcode.com"`,即可正常使用go mod tidy。

🎯

关键要点

  • 在gitcode托管的项目中,无法拉取代码。
  • 需要配置git使用ssh协议。
  • 执行命令`git config --global url."ssh://git@gitcode.com".insteadOf "https://gitcode.com"`。
  • 配置后可以正常使用go mod tidy。
➡️

继续阅读