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公钥

  • https://coding.net/help/doc/git/ssh-key.html
  • 公钥的好处,避免密码明文;多个项目,不用每个单独处理;使用简洁;

ssh-keygen -t rsa -b 4096 -C "[email protected]
部署公钥:https://coding.net/help/doc/git/ssh-key.html

你可能感兴趣的:(coding.net中配置git)