zoukankan      html  css  js  c++  java
  • Git 安装

     

    github使用SSH链接,需要设置SSH

    1.检查SSH key

         cd ~/.ssh

    2.备份已有的key,(如果有的话)

         mkdir key_backup

         cp github_rsa* key_backup

       rm github_rsa*

    3.生成SSH key

    $ ssh-keygen -t rsa -C hgonlwj@gmail.com

    4.将SSH key添加到GitHub

    登录到GitHub页面,Account Settings->SSH Public Keys->Add another key

    将生成的key(id_rsa.pub文件)内容copy到输入框中,save。

    5.测试链接

    $ ssh git@github.com

    出现上述提示信息说明连接成功(github并不提供shell登陆但已经连接成功)

    三、设置个人信息

    $ git config --global user.name "firstname lastName"

    $ git config --global user.email hgonlywj@gmail.com

  • 相关阅读:
    CSU 1122
    CSU 1256
    CSU 1240
    HDU 1874
    CSU 1004
    Problem F CodeForces 16E
    Problem E CodeForces 237C
    Problem C FZU 1901
    12-30
    2016-12-29
  • 原文地址:https://www.cnblogs.com/hgonlywj/p/4828863.html
Copyright © 2011-2022 走看看