git user.name user.email到底是干嘛用的

来源:互联网 发布:帝势艺术学院知乎 编辑:程序博客网 时间:2024/06/11 14:57

  1. 1.6 First-Time Git Setup

  1. Your Identity

    The first thing you should do when you install Git is to set your user name and e-mail address. This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating:

    $ git config --global user.name "John Doe"//An quote is needed,because there is a space between John and Doe. 
    $ git config --global user.email johndoe@example.com
0 0