0


centos 配置 git 连接 github

centos 配置 git 连接 github

  1. 首先安装 git
  2. 创建 ssh keyssh-keygen -t rsa
  3. 复制公钥cat ~/.ssh/id_rsa.pub # 打印出公钥内容然后复制
  4. 配置 github1. 登录网页 github 账号;2. 进入 setting;3. 点击 SSH and GPG keys,点击 New SSH key4. titile 随便填,把刚才复制的公钥填到 Key 里
  5. 在 centos 上配置 github 账号git config --global user.name "xxxx" //配置用户名git config --global user.email "[email protected]" //配置email

测试是否连接成功

ssh-T [email protected]
标签: centos git github

本文转载自: https://blog.csdn.net/weixin_42344452/article/details/135248017
版权归原作者 安牛牛牛 所有, 如有侵权,请联系我们删除。

“centos 配置 git 连接 github”的评论:

还没有评论