下载网址及git官网书籍:https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git
配置 user.name和user.email:当安装完 Git 应该做的第一件事就是设置你的用户名称与邮件地址。 这样做很重要,因为每一个 Git 的提交都会使用这些信息,并且它会写入到你的每一次提交中,不可更改
$ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com
原文:https://www.cnblogs.com/tianqizhi/p/10564725.html