配置SSH
生成秘钥命令:
ssh-keygen -t rsa -C "your_email@youremail.com"
回车即可
复制id_rsa.pub文件中的内容。 粘贴到github上setting -> SSH and GPG keys -> new SSH key。
验证是否配置成功:
ssh -T git@github.com
如果输出 “Hi ***! You've successfully authenticated, but GitHub does not provide shell access.”即为成功
查看全局配置
git config --list --global
配置邮箱、用户名
git config -global user.name 用户名
git config -global user.email 邮箱
idea 中直接使用token
github - setting - developer settings