Git 连接 Github

初始化邮箱用户名

1
git config --global user.email "shianqi@imudges.com"
1
git config --global user.name "shianqi"

生成SSH密钥

1
ssh-keygen -t rsa -C "shianqi@imudges.com"

windows 需要在 GitBush 中添加

将密钥添加到 Github 设置

测试连接

1
ssh -T git@github.com

出现下面的文本,则链接成功

1
Hi shianqi! You've successfully authenticated, but GitHub does not provide shell access.

评论和共享

  • 第 1 页 共 1 页
作者的图片

Archie Shi

Nothing to say


Front-End Development Engineer