Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot push source code to repository

Robert Shaw
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 14, 2022

Hello - When we try to push source code to our repository (git push origin master), we consistently encounter a prompt asking for credentials.  We're certain that we're entering the correct credentials, but we consistently see 'invalid credentials'.  This did work at one time.  We can log into the Bitbucket Web page fine with the same credentials.

Can anyone advise on why this might be happening?  We'd be grateful for any suggestions/guidance.  Thank you.

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2022

Hi Robert

We have deprecated account passwords when using Basic authentication for Git over HTTPS and the Bitbucket Cloud REST API.

An account's password can be used when logging in to the website. However, if you clone/pull/push via HTTPS, you will need to authenticate with username and app password.

The Username is listed here after you log in to the account.

You will need to generate an app password for the account and use that instead of a password:

If you only need to clone/pull/push to repos, then an app password with permissions Repositories - Read and Repositories - Write should be enough.

Kind regards,

Suggest an answer

Log in or Sign up to answer
Product Admin
AUG Leaders

Atlassian Community Events