复制代码
配置身份,不正确会影响贡献度统计
1 | git config --global user.email "[email protected]" |
配置 ssh 链接,一路回车,打开提示目录下 id_rsa.pub
复制到 https://github.com/settings/keys 点击 New sshKey,Title 可以不写
1 | ssh-keygen -t rsa -C "[email protected]" |
验证 ssh 是否成功
Hi A175A174! You’ve successfully authenticated, but GitHub does not provide shell access
1 | ssh -T [email protected] |