Introduction:
Git is a distributed version control system that’s being used by most software teams today. The first thing you should do after installing Git on your system is to configure your git username and email address. Git associate your identity with every commit you make.
Git allows you to set a global and per-project username and email address. You can set or change your git identity using the git config
command. Changes only affect future commits. The name and email associated with the commits you made prior to the change are not affected.
If you don't already have a server. You can start off by ordering a Linux VPS
Step 1 - Setting up Global Git Credentials:
The global git username and email address are associated with commits on all repositories on your system that don’t have repository-specific values.
To set your global commit name and email address run the git config
command with the --global
option:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
Once done, you can confirm that the information is set by running:
git config --list
user.name=Your Name
[email protected]
The command saves the values in the global configuration file, ~/.gitconfig
:
~/.gitconfig
[user]
name = Your Name
email = [email protected]
You can also edit the file with your text editor, but it is recommended to use the git config
command.
And we are all done!