Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Can not push

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:
remote: App passwords are recommended for most use cases and can be created in your Personal settings:

1 answer

0 votes

Hi @edosvorai,

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 (fetch)
origin (push)

then please check if bitbucket_username in the URL corresponds to your actual username listed here:


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:

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, in case an incorrect password or app password is saved there.


Kind regards,

Thanks Theodora.
The problem has disappeared.
Now I can commit and push without any problem.

Like Theodora Boudale likes this

That's good to hear @edosvorai, please feel free to reach out if you ever need anything else.

Suggest an answer

Log in or Sign up to answer
Site Admin

Atlassian Community Events