Skip to main content

Command Palette

Search for a command to run...

Security of your personal email address on GitHub

💡To keep your personal email address secure using GitHub you should do some configurations before starting with git.

Updated
1 min read
Security of your personal email address on GitHub
C

Hi, I'm Cristina Ramirez, I'm a computer engineer and software developer with more than 10 years of experience as backend developer, web application development, API REST services for mobile applications, system analysis and logic.

Programming languages: Ruby, PHP, C, C++, C#, CSS, JavaScript.

Frameworks: Ruby on Rails, PHP (Codeigniter, APPHP).

Experience of relational databases (Postgres, MySql, Oracle) and NoSQL databases (MongoDB, Neo4j).

I like innovation and teamwork.

🇻🇪 Spanish

When you push commits from the command line, the email address that you've set in Git is associated with your commits, so, you should do some configurations to keep your personal email address secure. You can execute git config command to change the email address associated with your commits.

1.- Log in to your account on GitHub. In the upper-right corner of any page, click your profile photo, then click Settings, click on the tab "Emails" and copy the email address assigned by GitHub. This email is in the red box of the image.

2.- Setting your Git username for every repository on your computer. Then set your Git username in the terminal with the command git config --global user.name "<username>":

$ git config --global user.name "Cristina Ramirez"

3.- Confirm that you have set the Git username correctly:

$ git config --global user.name

4.- Open Terminal. Set the email address assigned by GitHub using git config --global user.email <github_email> command. This new email address will be used in git operations and not your personal email address.

git config --global user.email <github_email@users.noreply.github.com>

5.- Confirm that you have set the email address correctly in Git executing git config user.email command.

git config user.email

Reference:

git-scm.com/book/es/v2

https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git

29 views