https 协议对占用服务器资源比较多 决定将 git htts切换到ssl协议
查看当前协议
$ git remote -v
origin https://baidu.com/foreground/htjminiapp.git (fetch)
origin https://baidu.com/foreground/htjminiapp.git (push)
查看当前协议是https
执行https 切换到ssl 协议
git remote set-url origin git@baidu.com:foreground/htjminiapp.git
查看当前协议
$ git remote -v
origin git@gitee.kepler8.com:foreground/htjminiapp.git (fetch)
origin git@gitee.kepler8.com:foreground/htjminiapp.git (push)
查看当前协议是ssl 协议
结果:切换成功
注意:git remote set-url origin https://baidu.com/foreground/htjminiapp.git 可以直接将ssl 切换回https