git的安装以及和github的关联

版权声明:如果对大家有帮助,大家可以自行转载的。 https://blog.csdn.net/S2013122867/article/details/79691231

注明:我只是博客的搬运工。。。。基本上都是整合别人的博客
【参考博客链接】
GitHub新手使用教学(从安装到使用)

安装Git for Windows

下载地址: https://git-for-windows.github.io/

Git与GitHub关联使用

  1. github官网(如果已经注册过就直接登录)
  2. 本地配置用户名和邮箱(利用gitbase)

git config --global user.name "用户名"

git config --global user.email "邮箱"

  1. 生成ssh key
    ssh-keygen -t rsa -C "邮箱"

  2. 复制ssh key
    clip < ~/.ssh/id_rsa.pub

  3. 连接github
    打开GitHub 进入setting找到ssh key并新建
  4. 测试连接是否成功
    ssh -T [email protected]

猜你喜欢

转载自blog.csdn.net/S2013122867/article/details/79691231