美文网首页
coding.net中配置git

coding.net中配置git

作者: 狸狸的守护者 | 来源:发表于2015-11-23 20:55 被阅读2503次

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

相关文章

网友评论

      本文标题:coding.net中配置git

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