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 | ||
---|---|---|
| ||
Expand | ||
---|---|---|
| ||
Expand | |||||
---|---|---|---|---|---|
| |||||
These can be set at the command line of GIT, like so:
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 | |||
---|---|---|---|
| |||
These settings can be found in your global ~/.gitconfig file:
|