git exited with code: 128
warning: 'E:/Repository/DB/XXX.db' is owned by:
but the current user is:
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:
I see two issues in the part of the output you shared:
First, Git is showing a warning that you are logged in to your local machine as one user, but the directory of the Git repo in your machine is owned by a different user in that computer.
This is not related to Bitbucket users, it has to do with the users and the clone on your local machine. Is it possible to change the ownership of that directory to your user? Or log in to that computer as the user who owns this directory?
The second part of the error (Bitbucket Cloud recently stopped supporting account passwords for Git authentication.) indicates that the authentication details when you try to push are incorrect.
I would suggest first running the following command in the directory of the clone and checking if your username is listed in the URL:
git remote -v
If the output looks as follows:
origin https://email@example.com/workspace-id/repo.git (fetch)
origin https://firstname.lastname@example.org/workspace-id/repo.git (push)
then please check if bitbucket_username in the URL corresponds to your actual username listed here: https://bitbucket.org/account/settings/
If that is ok, the next thing to check is the password part. Your account's password can only be used for logging in to our website from browser. For operations like clone, pull, push via HTTPS, you will need to use an app password generated from here: https://bitbucket.org/account/settings/app-passwords/
If you only need to clone, pull, push to repos, an app password with permissions Repositories : Read and Repositories : Write should work.
Finally, if you are using a credential manager for Git, I would suggest clearing any saved credentials for bitbucket.org, in case an incorrect password or app password is saved there.