门户网站衰落的原因,重庆建设厂网站,健康企业建设标准,房产经济人怎么做网站以 bitbucket.org 平台和mac电脑为例
前置条件私库需要给你账号权限#xff0c;可拉取的权限#xff0c;否则无法进行正常拉取
我们采用ssh方式#xff0c;需要在本地生成对应的 rsa 的公钥和私钥#xff0c;将公钥配置如下图#xff1a; 在 .ssh/config 写入你的配置 H…以 bitbucket.org 平台和mac电脑为例
前置条件私库需要给你账号权限可拉取的权限否则无法进行正常拉取
我们采用ssh方式需要在本地生成对应的 rsa 的公钥和私钥将公钥配置如下图 在 .ssh/config 写入你的配置 Host bitbucket.orgHostname bitbucket.orgUser gitIdentityFile ~/.ssh/你的私钥在其次在 .gitconfig 文件中写入
[url ssh://gitbitbucket.org/]insteadOf https://bitbucket.org/因为 go mod 和 go get 默认走 https 形式拉取所有需要替换 git 的拉取方式为 ssh
当然也可以执行命令:
git config --global --add url.https://bitbucket.org/.insteadOf ssh://gitbitbucket.org/