How to change git username & password after you change the git password.

How to change git username & password after you change the git password.

August 7, 2023

MAC:

$ git config --global user.name "John Doe"
$ git config --global user.email "bob@example.com"

Change the user name password in keychain

Windows:

  1. In your terminal, navigate to the repo you want to make the changes in.
  2. Executegit config --listto check current username & email in your local repo.
  3. Change username & email as desired. Make it a global change or specific to the local repo:
    git config [--global] user.name "Full Name"
    git config [--global] user.email "email@address.com"
  4. Per repo basis you could also edit.git/config manually instead.

 

Leave A Comment

Avada Programmer

Hello! We are a group of skilled developers and programmers.

Hello! We are a group of skilled developers and programmers.

We have experience in working with different platforms, systems, and devices to create products that are compatible and accessible.