用户名和邮箱地址的作用
用户名和邮箱地址是本地git客户端的一个变量,不随git库而改变。
每次commit都会用用户名和邮箱纪录。
github的contributions统计就是按邮箱来统计的。
查看用户名和邮箱地址:
$ git config user.name
$ git config user.email
修改用户名和邮箱地址:
git config --global user.name "username"
git config --global user.email "email"
添加ssh请参见
因为别人写得太好了(linux端)
(自己实操发现在wimdows的git bash下面也可以完全使用上面的步骤进行)








然后找到sublime的位置添加到path,然后重启git就可以用了
网友评论