查看用户名、邮箱:
git config user.name
git config user.email
修改用户名、邮箱:
git config user.name "username"
git config user.email "email"
修改全局用户名、邮箱:(一台服务器上存在多个Git用户时慎用)
git config --global user.name "username"
git config --global user.email "email"
添加SSH公钥:
ssh-keygen -C "email"
参考资料: