Create API Token
Click on your Bitbucket Profile
Click Account Settings
(https://id.atlassian.com/manage-profile/profile-and-visibility)
Click Security at the Top Menu Bar
Scroll down to API Tokens
Click Create and manage API tokens
Click Create API Tokens with Scopes
- read:repository:bitbucket
- write:repository:bitbucket (if you plan to commit your changes)
How to use the API Token
On the terminal enter:
git clone https://x-bitbucket-api-token-auth@bitbucket.org/workspace-name/repo-name.git
OR
git clone https://x-bitbucket-api-token-auth:YOUR_API_TOKEN_HERE@bitbucket.org/workspace-name/repo-name.git
OR
git clone https://bitbucket.org/workspace-name/repo-name.git and enter the token when asked for password