Configure Git for the first time

When you start using Git in a new computer you need to setup some basic steps to configure Git for the first time, and to be ready to work in a git console.
Install Git
The install process could be different for each OS:
- MacOS:
- Install via HomeBrew (
brew install git)
- Install via MacPorts (
sudo port install git
) - Go to https://git-scm.com/download/mac and install the package manually
- Linux
- Debian/Ubuntu (sudo apt-get install git)
- CentOS (sudo yum install git)
- Fedora (sudo yum install git-core)
- Windows
- Go to https://git-scm.com/download/win and install the package manually.
Configure Git for the first time
- Global variables
- Set the git global user name (
git config --global user.name "myname"
) - Set the git global email (
git config --global user.email "my@email.com"
)