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 |
|
|
20 |
git clone git clone https://$USER:$PASS@bitbucket.org/$USER/$REPO.git
|
|
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 |
|
|
28 |
git clone git clone https://$USER@bitbucket.org/$USER/$REPO.git
|