go mod tidy 使用私有仓库时候,提示输入用户名密码; 修改为使用ssh key 下载私有仓库的代码
摘要:
步骤 1:GOPRIVATE环境变量来配置私有仓库。 $ go env -w GOPRIVATE=gitlab.com/xxx 2. 配置ssh 配置 # 分别生成ssh key ssh-keygen -t rsa -C "your_email@example.com" # vi ~/.ssh/co 阅读全文
posted @ 2023-10-13 16:24
心如沚水
阅读(1336)
评论(0)
推荐(0)