随笔分类 -  git

学习git记录
摘要:1. 克隆代码到本地时,出现The authenticity of host 'XX' can't be established. 无法与XX建立连接 解决:将自己本地生成的ssh公钥id_rsa.pub,放到服务器XX的公钥数据库authorized_keys上即可。 ssh git@XX 'ca 阅读全文
posted @ 2018-11-16 10:40 ぢ好好学习 阅读(113) 评论(0) 推荐(0)
摘要:1. git注册用户,邮箱$ git config --global user.name "Your Name"$ git config --global user.email "email@example.com" 2. 创建一个版本库非常简单,创建一个空目录$ git init 3. 文件添加到 阅读全文
posted @ 2018-11-15 16:28 ぢ好好学习 阅读(146) 评论(0) 推荐(0)