美文网首页
go get时使用ssh协议

go get时使用ssh协议

作者: e06ef3adf70b | 来源:发表于2018-12-15 12:26 被阅读39次

在终端中执行如下命令

git config --global url.git@github.com:.insteadOf https://github.com/

这时候查看git的配置文件会发现有如下配置

$ cat ~/.gitconfig 
[url "git@github.com:"]
    insteadOf = https://github.com/

相关文章

网友评论

      本文标题:go get时使用ssh协议

      本文链接:https://www.haomeiwen.com/subject/icxahqtx.html