To authenticate against Bitbucket and clone repositories using GitHub Desktop, you can follow these 3 steps:
Step 1: Enable Git Credential Manager in GitHub Desktop
- Open GitHub Desktop.
- Go to File > Options > Advanced (on Windows) or GitHub Desktop > Preferences > Advanced (on macOS).
- Select the checkbox for Use Git Credential Manager.
Step 2: Create a Personal Access Token in Bitbucket
- Log in to your Bitbucket account.
- Go to Personal Bitbucket settings in the settings dropdown.
- Select App passwords (the side menu may be collapsed).
- Click Create app password.
- Under the Details section, enter a label for your password.
- Under Permissions, select Read and Write in the Repositories section.
- Click Create to generate a new token.
- Copy the token to your clipboard. NOTE: You will not be able to view this again later.
Step 3: Clone Your Bitbucket Repository in GitHub Desktop
- Open GitHub Desktop.
- Go to File > Clone Repository > URL.
- Enter the HTTPS clone URL of your Bitbucket repository.
- When prompted for authentication, enter your Bitbucket username and paste the token you copied as your password.
- Click Save and Retry to successfully clone the repository to your local machine.
This setup should allow you to authenticate against Bitbucket and clone repositories using GitHub Desktop.