publication

How to Change Git User Name and Email

Miquel Canal

Thursday 14, January 2021
  • git
  • System Administration
  • open-source

Change Git User Name and Email in 3 Steps

  1. Open your terminal and navigate to your git repository.
  2. Change Git user name by running: git config user.name “Your Name”
  3. Change Git user email by running: git config user.email “name@email.com”

With these easy steps you will be able to change the git user name and git user email. Keep in mind that these instructions are used to change the git user name and email for a particular repository.

To change the global git user name and email you have to add the --global parameter to the commands. Here is an example of how to change git user name and email globally:

  1. Open your terminal and navigate to your git repository.
  2. Change Git user name by running: git config --global user.name “Your Name”
  3. Change Git user email by running: git config --global user.email “name@email.com”

Git Configuration (Git Config)

The git config command can be used to interact with the configuration of a git repository. You can review all the git configurations by running git config --list command.

Here are some examples of values that are stored on git’s config object:

As an example, here is how to get the git repository URL in 2 steps:

  1. Open terminal and navigate to git repository.
  2. Run the command: git config remote.origin.url
Github - User Access Token instead of Passwords

Github - User Access Token instead of Passwords

Github announced its deprecation of user passwords for all Git operations. Git operations that use authentication will require the use of token-based (GitHub User Access Token). The motivation behind this decision from GitHub is to increase user’s security from malicious attackers.

How to change the author of a commit

How to change the author of a commit

4 easy steps to change author name of a commit after push. Learn to use the rebase command and differences between git rebase and git merge.

Virtual Environments in Python

Virtual Environments in Python

A look out to Python's virtual environments. Why are they useful and how can be used in software applications to install Python packages using Python Package Index (PyPI)

This site uses cookies to ensure a great experience. By continue navigating through the site you accept the storage of these cookies.