author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Wed, 20 Mar 2024 20:46:03 +0200 | |
changeset 2589 | 608c75053bf0 |
parent 2525 | cb9c3e5c2884 |
permissions | -rw-r--r-- |
2523 | 1 |
|
2 |
=========== |
|
3 |
Bitbucket |
|
4 |
=========== |
|
5 |
.. contents:: |
|
6 |
:local: |
|
7 |
||
8 |
HTTPS access |
|
9 |
============ |
|
10 |
||
11 |
As you cannot use your account password anymore: |
|
12 |
||
13 |
https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity |
|
14 |
Deprecating Atlassian account password for Bitbucket API and Git activity. |
|
15 |
||
16 |
you need to generate an app password in https://bitbucket.org/account/settings/app-passwords/ |
|
17 |
||
18 |
You can embed the password into URL:: |
|
19 |
||
2524 | 20 |
git clone https://$USER:$PASS@bitbucket.org/$USER/$REPO.git |
2523 | 21 |
|
22 |
As Git uses libcurl you can store password in the file ``.netrc``:: |
|
23 |
||
24 |
machine bitbucket.org login USER password PAZZ |
|
25 |
||
26 |
and avoid leaking it into shell history, ompare with the previous Git command:: |
|
27 |
||
2524 | 28 |
git clone https://$USER@bitbucket.org/$USER/$REPO.git |
2525
cb9c3e5c2884
Two-step verification.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2524
diff
changeset
|
29 |
|
cb9c3e5c2884
Two-step verification.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2524
diff
changeset
|
30 |
Two-step verification |
cb9c3e5c2884
Two-step verification.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2524
diff
changeset
|
31 |
===================== |
cb9c3e5c2884
Two-step verification.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2524
diff
changeset
|
32 |
|
cb9c3e5c2884
Two-step verification.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2524
diff
changeset
|
33 |
Bitbucket recommends avoiding HTTPS and set up SSH key to access Git repositories: |
cb9c3e5c2884
Two-step verification.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2524
diff
changeset
|
34 |
|
cb9c3e5c2884
Two-step verification.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2524
diff
changeset
|
35 |
https://support.atlassian.com/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/ |
cb9c3e5c2884
Two-step verification.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2524
diff
changeset
|
36 |
Configure SSH and two-step verification. |
cb9c3e5c2884
Two-step verification.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2524
diff
changeset
|
37 |
|
cb9c3e5c2884
Two-step verification.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2524
diff
changeset
|
38 |