coding.net中配置git

coding.net提供https 和 git两种clone方式

  • 首先升级git,默认的1.7.1无法clone,建议1.9以上,2.2一步到位
  • https 方式,需要git 在编译时,增加选项;未实践;

对于 Https 协议

  • 配置 HTTPS Remote URL 时加上你的 username@password, https://{username}:{passwd}@git.coding.net
  • 使用 Git 命令存储 git config --global credential.helper store , ~/.gitconfig文件多出下面配置项
    [credential] helper = store

配置SSH公钥

ssh-keygen -t rsa -b 4096 -C "devops@xxx.com
部署公钥:https://coding.net/help/doc/git/ssh-key.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容