Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In order to commit your changes GIT GIt requires that you set two variables:

...

user.name - Your name i.e. “Joe Blogs”

...

tell it your name and your email address. You can pick anything you like but it’s best practice to pick an email address that your cloud host will recognize if you want to be able to trace your commits in that cloud host. Cloud host providers like Bitbucket and Github will try and match the email address to known users.

So it is best practice (but not mandatory) to pick an email address and name which is recognized by your cloud host account.

If you haven’t configured your Git credentials you are likely to see something like this:

...

You can set these in the GUI:

Expand
titleClick on Ellipisis in the Git credentials section
Image Added

Expand
titleFill in your Name and Email and click Save

Expand
titleSetting them with the Git command line

These can be set at the command line of GIT, like so:

Code Block
languagebash
git config --global user.name "Mary Tyler Moore"
git config --global user.email "mary@moore.com"

The GIT setup screen also allows one to set these parameters.

...

These parameters are different from the credentials required for your cloud host.

It is best practice (but not mandatory) to pick an email address and name which is recognized by your cloud host account.

Expand
titleWhere are they stored?

These settings can be found in your global ~/.gitconfig file:

Code Block
[user]
         name = Mary Tyler 
More
Moore
         email = mary@moore.com