Setting up Gmail on GIT
How to associate/configure access to Gmail in git
Before setting up git, you may need to enable "less secure app access" on Gmail, according to the information from link [1].
Although this is not a good practice, as it may expose your email account a bit more, encryption remains active (TLS).
With the commands below, we associate a Gmail account with the committer globally, meaning that all git projects running on your computer that depend on the email service (e.g., git send-email) will be automatically linked to the account you associate below.
This is the sequence of commands:
(This step I consider optional and personally do not use)
References
[1] Let less secure apps access your account
[2] Configuring git send-email to use Gmail SMTP
Although this is not a good practice, as it may expose your email account a bit more, encryption remains active (TLS).
With the commands below, we associate a Gmail account with the committer globally, meaning that all git projects running on your computer that depend on the email service (e.g., git send-email) will be automatically linked to the account you associate below.
This is the sequence of commands:
git config --global sendemail.smtpserver smtp.gmail.com
git config --global sendemail.smtpserverport 587
git config --global sendemail.smtpencryption tls
git config --global sendemail.smtpuser seu-email@gmail.com
(This step I consider optional and personally do not use)
git config --global sendemail.smtppass sua-senha
References
[1] Let less secure apps access your account
[2] Configuring git send-email to use Gmail SMTP