![]() ![]() just use GitHub Desktop to push and pull from your Bitbucket repo. 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. Get ready to learn how to use GitHub desktop Installing the application is easy. This article will outline how to install GitHub desktop on your machine and how to set up the configuration settings. The installation of GitHub Desktop is as simple as any other Windows application installation. The macOS SSH agent will handle your authentication, until you restart your Mac. How to Use GitHub Desktop For Mac And Windows Getting started with GitHub desktop can be daunting, but it’s not as difficult as it seems. 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. Compare GitHub Desktop alternatives for your business or organization using the curated. 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.)Ģ. Hit enter and watch the repository being cloned.Type git clone (replacing that sample URL with the Bitbucket URL available on the Overview page of your repository).You’ve just opened that parent folder on the command line. Type cd /Local/path/to/parent-folder/to/clone/into (replacing that sample path with the local path to the parent folder you want to clone your Bitbucket repository into).Clone Bitbucket Repository Locally via Command Line You will need your Bitbucket repository’s git URL as available on the Overview page of your repository:ġ. Add the cloned repository to your GitHub Desktop app.Īfter completing these 2 steps, you’ll be able to execute sync, push, pull, commit, and other git commands available in GitHub Desktop for your Bitbucket repository just as you would for any GitHub repository.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) Tower is especially interesting for GitHub users because it not only allows to work with the local Git repository: Tower also integrates tightly with GitHub itself, allowing you to create and manage remote repositories directly in your GitHub account or work with platform-specific features like "Pull Requests" right from the desktop.⚠️ Note: this guide is from 2016 – a long time on the internet. One of the more advanced GUI applications in this area is the Tower Git client: This allows you to work in a more visual way, using modern tools like drag & drop, contextual menus, and other advantages of GUI applications. You are then working with Git by executing textual commands with various options and parameters: Git and GitHub on the DesktopĪnother way to use Git on your desktop computer is through a GUI application. ![]() One way to use Git on your desktop computer is through the Command Line Interface (in short: "CLI"). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |