Git 全局地址替换 发表于 2021-08-02 更新于 2021-08-02 分类于 Developer 阅读次数: 510 强制使用 ssh 协议 1234# 所有域名 https 协议改为 ssh 协议git config --global url.ssh://.insteadOf https://# github.com 域名 https 协议改为 ssh 协议git config --global url.ssh://github.com.insteadOf https://github.com 地址加上用户名 1git config --global url.ssh://git@bitbucket.org/.insteadOf ssh://bitbucket.org/ 引用 https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf 本文作者: 6x 本文链接: https://6xyun.cn/article/132 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-ND 许可协议。转载请注明出处!