You only need to complete this step once for each machine you intend to send emails from. There are two possible ways of using Gmail with git send-email: First, make sure that two-factor authentication is enabled for your Google account. Then, obtain an application-specific password for git from the app passwords page. To store this password with git, run this command: git config --global sendemai