码迷,mamicode.com
首页 > 其他好文 > 详细

自己整理连接github步骤

时间:2015-11-01 22:48:42      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

连接github:
1. 生成秘钥
    a). 创建SSH key
       ssh-keygen -t rsa -C “xxx@xxx.com”
    b).
       xp:C:\Documents and Settings\Administrator-> .ssh
       win7: C:\Users\所使用的用户-> .ssh

    里面两个文件:id_rsa
    id_rsa.pub -> 取出里面东西(不要拿编辑器打开)


  c). 把这个秘钥填写到github
  点击头像->settings->SSH keys->key
2. 配置邮箱和用户名
git config -l 列出当前git本身配置

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

自己整理连接github步骤

标签:

原文地址:http://www.cnblogs.com/queenie/p/4928748.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!