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?
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:
Click the gear cog icon, select Atlassian Account settings > Security tab > Create and manage API Tokens
Click Create API token with scopes and select Bitbucket Cloud
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.
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 bbhttps://username:APIToken@bitbucket.org/workspaceID/reposlug.git
git remote add bbhttps://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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.