Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I can't do "git push bb main", it requires a password but my Atlassian account's PW doesn't match to

달님Moon
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!
October 5, 2025

 I'm learnin how to use Git.

I typed those below in my console.

>git remote add bb https://gouahra@bitbucket.org/snowycommander/git-for-everyone.git

>git push bb main

>>It requires a password, and I inputted my Atlassian account's PW.

FAILED...

 

 I changed my PW for this, but it doesn't work. What should I do?

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 8, 2025

Hi @달님Moon 

The reason it's failing is because basic username/password authentication have been deprecated for quite some time now: 

We'll be migrating over to API tokens shortly from App Password, so this is what I'd suggest using for auth.

 

To start using API tokens with Bitbucket Cloud - you'll need to create the API token and specify the scope - this is mentioned in our deprecation documentation:

  1. Click the gear cog icon, select Atlassian Account settings > Security tab > Create and manage API Tokens

  2. Click Create API token with scopes and select Bitbucket Cloud

  3. If you want to be able to clone/push/pull to the repository - you'll need to tick both read:repository:bitbucket and write:repository:bitbucket - clone only would just be read:repository:bitbucket. More information on scopes can be found in our API scopes documentation.

  4. Perform a clone using the API token by executing either of the commands below (if using the first command - you can find your username by clicking the gear cog icon and selecting Personal Bitbucket Settings - it's visible under the Bitbucket Profile Settings heading):

You can also update your remote URL in a similar manner as above:

git remote add bb https://username:APIToken@bitbucket.org/workspaceID/reposlug.git

git remote add bb https://x-bitbucket-api-token-auth:APIToken@bitbucket.org/workspaceID/reposlug.git


Please perform the above and let me know how this goes. If you are still encountering issues, I will assist you further.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events