yinshuwei / blog_comment

0 stars 0 forks source link

post/00001-go-mod-gitee-privte/ #1

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

go mod使用gitee.com私有库 - 农天狼的大巴

使用该方法后:公有库会使用 https://goproxy.io/ 代理,私有库(gitee上)将不使用代理,直接从仓库拉取代码

https://www.nongtianlang.com/post/00001-go-mod-gitee-privte/

yinshuwei commented 4 years ago

.git_config类似

[url "ssh://git@gitee.com/aaaa/bbbb.git"]
    insteadOf = https://gitee.com/aaaa/bbbb.git
[url "ssh://git@gitee.com/aaaa/cccc.git"]
    insteadOf = https://gitee.com/aaaa/cccc.git