To authenticate against Bitbucket repositories you will need to create a personal access token.
-
Go to your Bitbucket account and select Bitbucket settings in the user profile dropdown.
-
Select App passwords
-
Under App passwords click Create app password
-
Under the Details section in Add app password enter a label for your password
-
Under Permissions select
read
andwrite
in the Repositories section to ensure that GitHub Desktop has the correct read/write access to your GitLab repositories. -
Click Create to create a new token, and then copy the token to your clipboard.
-
Open GitHub Desktop and go to File > Clone Repository > URL. Enter the Git URL of your Bitbucket repository. Make sure you enter the correct URL, which should have the following structure:
https://bitbucket.com/<username>/<repository>
-
You will receive an
Authentication Failed
error. Enter your Bitbucket username and paste in the token you just copied to your clipboard as your password. Click Save and Retry to successfully clone the repository to your local machine in GitHub Desktop.
- Note: Your Bitbucket credentials will be securely stored on your local machine so you will not need to repeat this process when cloning another repository from Bitbucket.