I have y / s on BitBucket. I had to change the password on it, now when I try to execute

git fetch 

I see an error:

fatal: Authentication failed for 'Address'

As I understand it, git has saved my password and is now trying to use it. How can I reset this password?

You can of course delete and re-clone the repository, but I want to find a way easier.

  • "You can of course delete and re-clone the repository" firstly, it may not help if you use the Windows credential storage; secondly, you can clone another one without deleting the first one and check. - D-side
  • Cloning works. Unfortunately, the security policy in our company forces us to change passwords every 2 weeks. Each time it is not very interesting to haul several GGBs, so I’m looking for a way to just reset the password - Viktorov
  • Hm Look in the .git/config file inside the repository, maybe there is evidence there. - D-side
  • one
    git config --global --unset user.password, but it seems to erase all passwords - aknew
  • one
    You can use some kind of application for the gita, such as SourceTree. There in the settings you can edit the password - Dmitry Kozlov

1 answer 1

Delete password:

 git config --unset user.password 

It seems that in some cases the password is saved globally and you can use

 git config --global --unset user.password