[ About | Licence | Contacts ]
Written by Oleksandr Gavenko (AKA gavenkoa), compiled on 2023-03-19 from rev 7705e3c293ae.


HTTPS access

As you cannot use your account password anymore:

Deprecating Atlassian account password for Bitbucket API and Git activity.

you need to generate an app password in https://bitbucket.org/account/settings/app-passwords/

You can embed the password into URL:

git clone https://$USER:$PASS@bitbucket.org/$USER/$REPO.git

As Git uses libcurl you can store password in the file .netrc:

machine bitbucket.org login USER password PAZZ

and avoid leaking it into shell history, ompare with the previous Git command:

git clone https://$USER@bitbucket.org/$USER/$REPO.git

Two-step verification

Bitbucket recommends avoiding HTTPS and set up SSH key to access Git repositories:

Configure SSH and two-step verification.