GitHub SSH配置

  • 设置账号、email
    1
    2
    git config --global user.name "yourname"
    git config --global user.email "youremail"
  • 检查
    1
    2
    git config user.name
    git config user.email
  • 创建SSH ;id_rsa:私人秘钥id_rsa.pub:公共秘钥
    1
    ssh-keygen -t rsa -C "youremail"
  • GitHub -> New SSH key ->id_rsa.pub
  • 检查
    1
    ssh -T git@github.com