Hello It’s Ray!
Today I’m going to share with you how to configure basic information of Git.
Ｏkay now let’s add a new code on our example file as follows:
Git commit -am “Before configuration”
Take a look on the image above, which shows the author information of this commit in current configuration.
Now we add another description in the example1.html file as follows:
Let’s configure the user information.
enter the following code.
Git config --global user.name Ray
Git config --global user.email email@example.com
Please fill in yours in “Ray” and “firstname.lastname@example.org”
And then enter:
Git commit -am “after configuration”
Through image above we could see that we’ve successfully configured the user information.
Let me explain further. We use –global to configure, so it applies to ALL, simply speaking, all of the repositories in your computer are applied with this setting. We could also configure a local setting, which means the configuration only apply to local repository. We will talk about it further!
Let’s call it a day. See you guys!