Configuration commands

There are a set of commands that can be used to configure user information that cut across all local repositories on the computer where Git is installed. The git config command is used to get and set global repository options. It accepts the --global option which is followed by the specific configuration to get or set entries from the global .gitconfig file.

To set the global username that will be attached to all commit transactions, run the following:

git config --global user.name "[name]"

The global user email address can also be set. This will attach the set email address to all commit transactions. Run the following command to achieve that:

git config --global user.email "[email address]"

For good aesthetics, you ...

Get C# and .NET Core Test Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.