Git clone authentication fail on Windows 10
Feb 10, 2021
Let’s assume you try to clone a project from either github or bitbucket.
Windows 10 stores your credentials in a vault called “Credential Manager”. However, every now and then the passwords might expire or get out of sync. For example, you have changed your github password but Windows will remember the old one.
Open cmder or command prompt.
git clone https://bitbucket…
Cloning into ‘project-name’…
fatal: Authentication failed for ‘https://bitbucket…
If you get the above error you can fix it using the following procedure:
- Start -> Credential Manager -> Windows Credentials.
- Find the bitbucket entry. Click to expand (an arrow to the right). Choose ‘Remove’. Confirm by clicking the ‘Yes’ button.
- Clone again.
- This time you will be prompted for password.