My First Post      My Facebook Profile      My MeOnShow Profile      W3LC Facebook Page      Learners Consortium Group      Job Portal      Shopping @Yeyhi.com

Pages










Showing posts with label reset. Show all posts
Showing posts with label reset. Show all posts

Wednesday, May 13, 2020

How to update git password on terminal: Command line utility to reset github password / access credentials

On macOS, you can use

git config --global credential.helper osxkeychain

A username and password prompt will appear on your next Git action (pull, clone, push, etc.).
Eg: If you do git clone: gttps://mfaiz@www.repository.git .

As soon as you press Enter key, you will be prompted for a password.
You can use the updated password here. And, you will be able to access and password also gets updated automatically!


For Windows, it's the same command with a different argument:

git config --global credential.helper wincred


Isn't this simple :)
Cheers.

Tuesday, May 7, 2019

Git password expired. How to reset git authentication?


Sometimes, when you try to git clone the git repository or do any push or pull, it says:
remote: HTTP Basic: Access denied  fatal: Authentication failed for "~~yourRepositoryName"

The simplest reason is that your password is expired and/or changed externally. And, you need to change it for git to understand.

So, the question comes that How can you re-access your git repository or simpley put - How will you reset the password credentials.

Solution: Cheers, its simple.

Command:
git config --system --unset credential.helper

This will start resetting your credential manager stored wrong authentication password. Will ask for new password.
And, that's it. Enjoy.



---- I have found another method and updating it here on 30 January, 2020 ----


To fix this on macOS, you can use
git config --global credential.helper osxkeychain
A username and password prompt will appear with your next Git action (pull, clone, push, etc.).
For Windows, it's the same command with a different argument:
git config --global credential.helper wincred
The above trick resets the password stored. After this when you git pull, it will ask for password.



:)