# HG changeset patch # User Oleksandr Gavenko # Date 1650527284 -10800 # Node ID 8add39b5cc018317b26d6760b3450df8cc932eed # Parent 4a4979019c2cfe469da82deab6608804fc07d926 HTTPS access. diff -r 4a4979019c2c -r 8add39b5cc01 bitbucket.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bitbucket.rst Thu Apr 21 10:48:04 2022 +0300 @@ -0,0 +1,28 @@ + +=========== + Bitbucket +=========== +.. contents:: + :local: + +HTTPS access +============ + +As you cannot use your account password anymore: + +https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity + 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 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 git clone https://$USER@bitbucket.org/$USER/$REPO.git