Email address and name registration

Register your email address and name in Git as personal identification information. This is used as personal identification information when committing.

# Name setting
git config --global "John Doe"

# Email address settings
git config --global

This setting is saved in "~ / .gitconfig". Let's take a look at the contents with the cat command.

cat ~ / .gitconfig

This is the output sample.

        email =
        name = Yuki Kimoto
        editor = vi

Associated Information