1、配置用户名:git config --global user.name ‘username’
配置邮箱: git config --global user.email ‘你的email’
查看配置:git config --global --list
2、生成公钥:ssh-keygen -t rsa -C “你的email”
生成目录:C:\Users\userName\.ssh\id_rsa.pub
3、添加到gitee 或者GitHub
4、配置idea
setting->Version Control->Git path to Git executable 改成git的路径(cmd\git.exe)