
Where ~/.ssh/id_rsa is the path to your SSH key. You'll need to create a config file in the same directory as your SSH key:Īnd then add the following to that file: Host * So to prevent from having to do this all over again on restart, add your SSH key to the macOS Keychain. The macOS SSH agent will handle your authentication, until you restart your Mac. You'll be prompted to enter the passphrase associated with your SSH key. Using the macOS credential storer ssh-agent we can allow GitHub Desktop (or other software) to use our SSH key and passphrase to authenticate with other services. Now commits coming from GitHub Desktop will be made using your Bitbucket username (once we finalize authentication). It should look something like the git part to your Bitbucket save. You'll get a modal with the Remote for this repo.

In GitHub Desktop, select the Repository option from the app menu, and select Repository Settings. Find the local folder you have the repo in, and you should see that repo now in GitHub Desktop (along with it's History, if there is any yet). Then select the Add Local Repository option (if you already setup git using the command line like I did). Add Local Repository to GitHub Desktopĭownload the app and launch it, either logging into your GitHub account or skipping that step. Some of the information here was helpful, but I'll sum up what I did to get this working. You should now be able execute git operations on your Bitbucket repository via your GitHub Desktop app just as on any GitHub repository.Īfter setting up a Bitbucket repo and pulling it down using git from the command line of my Mac, I wanted to switch to GitHub Desktop to manage commits and push/pulls. Your newly added repository will appear at the bottom of your sidebar in the Other section. On the Add tab click the Choose… button, navigate to the folder you have just cloned your Bitbucket repository into, and select it.

Select Add to add an exisiting local repository.

In the upper right corner (if your sidbar is open) press the large + button. Add Cloned Repository to Your GitHub Desktop App (Once it’s done, it’ll say something like …done in one of the last lines.)Ģ.

Clone the Bitbucket repo locally via command line.You can’t clone a Bitbucket repo using GithHub Desktop directly. Content may be outdated, check the comments for more recent info.Ĭlone Bitbucket Repository and Add it to GitHub Desktop App (Mac) ⚠️ Note: this guide is from 2016 – a long time on the internet.
