Nick Knauer
Nick Knauer

Reputation: 4243

Retyping Username and Password in Git Bash for Github access

I recently wrote the wrong username and password to login to my github account through git bash. I originally tried cloning my git branch when it prompted my login with a pop up.

After I got my username and/or password login wrong, when I try cloning again it does not give me the option to login again.

I now cannot type my credentials again.

When I try cloning again it automatically says this:

enter image description here

Does anyone know how I can have the pop-up appear again so I can re-write my username and password?

Upvotes: 1

Views: 4913

Answers (1)

Baklap4
Baklap4

Reputation: 4202

The pop up probably saved it in your git configuration. This can be done global or local per repository.

To check if it's within the config use the following commands (for global):

git config --global user.name
git config --global user.password

or the following commands (for local):

git config user.name
git config user.password

If either are filled and return your password then you could set it correctly by supplying a value after the git config command:

git config --global user.name "yourUsername"
git config --global user.password "yourPassword"

or for the local one:

git config user.name "yourUsername"
git config user.password "yourPassword"

Upvotes: 3

Related Questions