Hello, I'm a new bitbucket user. I have recently gotten into a game dev team.
After I cloned the repository, I attempted to fetch(in sourcetree) only to get an error along the lines of;
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags origin
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
fatal: Authentication failed for 'https://bitbucket.org/Brakesoft2018/towerdefense.git/'
Thats when I noticed there was an exclamation mark on the "remote" button which leads to my title.
I followed some tutorials and implemented the app password, but the code error persists and the remote problem hasnt gone away. What is going on ?
I have tried to search for answers but I think my inexperience is getting in the way of me finding the right ones. Even a pointer to the right direction would be appreciated.
Welcome to the community!
The most common issue customers are experiencing related to authentication in SourceTree is due to the local config still using an old outdated password to authenticate instead of App Password.
This generally happens on Windows Sourcetree, so I assume you are using Windows Sourcetree as well?
If yes, I would suggest you to uninstall and delete all the files/folder under the following path:
Once done, download the latest version of Sourcetree and install it. Now use the basic authentication and generate and use App Password instead your account password.
If you happen to be on MAC, you can just simply delete the store password in Keychain by searching for Bitbucket and removing all save passwords. This will force Sourcetree to reset and ask for a new password where you can enter your new App Password.
I hope this helps.
Noted. Can you let me know what you did?
That said, can you verify that you are using the correct App Password by trying to clone your repository via HTTPS and using the app password?
git clone https://<username>:<app_password>@bitbucket.org/<workspace_name>/<repo_name>
Let me know how it goes.
Cloning result "fatal: destination path 'towerdefense' already exists and is not an empty directory."
I deleted all the files you told me to. I created an app password through bitbucket. Installed sourcetree again, went to options/authentication, changed auth to basic, clicked refresh password and pasted the app password in.
It says auth ok and a little green mark is there but there is no change.
Can you try cloning the repo in an alternate folder since the error means you are trying to clone in the same directory that already has existing repo?
That said, can you check your Windows credential manager and see if there's any saved password for bitbucket.org? If yes, please remove it and try authenticating again.