初始设置
- 设置姓名邮箱
git config --global user.name "your name" git config --global user.email "your_email@example.com"
- 设置命令色彩
git config --global color.ui auto
- 设置SSH Key
在GitHub上添加公开密钥ssh-keygen -t rsa -C "your-email@example.com"
粘贴~/.ssh/id_rsa.pub或C:\Users\主机名.ssh\id_rsa.pub中内容
用私钥与GitHub认证通信ssh -T git@github.com