git初始化

1. 配置用户名和邮箱

只是标识,不做验证之用。

git config user.name "suibian"(配置用户名)(查看用户名命令git config user.name)
git config user.email "12345@xx.com"(配置邮箱)(查看邮箱命令git config user.email)

  

2. 生成 ssh key

ssh-keygen -t rsa -C "youremail@example.com"

  

原文地址:https://www.cnblogs.com/alexYuin/p/10107166.html