Click here to Skip to main content
Click here to Skip to main content

Yes, you can use GitHub for Windows with BitBucket

By , 14 Mar 2013
 

​I'm a big fan of both GitHub and BitBucket as online version control applications.  I've been using git as a source control mechanism since 2010, and these online services since that time as well. Full Disclosure: I've been a paying customer of GitHub in the past, discontinuing when I was completed with the project I needed their full services for.  

I have always been very familiar with the command-line and using it to interact with the git source control seemed natural to me. To assist with those less comfortable with the command-line, a front-end for Windows-based developers was released by GitHub called "GitHub for Windows". In this application, the entire interaction with the source code repository is streamlined and made simple for the user.  The user-interface is configured to make storage of your content with GitHub a "no-brainer".  But it leads people to question:  "Can I use GitHub for Windows with BitBucket?"

Yes... yes you can.  In the rest of this article, I will show you how to configure this client app to interact with a BitBucket repository.​

From the main screen of GitHub for Windows, click “+ add”

In the resultant “new repository” window, key in whatever you’d like to name the repository and be sure to NOT mark the “Push to github” checkbox.  Click ‘Create’ at the bottom to create the local repository:


​New Repository Window


​Repository List

Next, in the repository list window, click the “right arrow” next to the name of the repository you just created to open that repository.​

Click the “tools” gear at the top of the repository details screen, and select the ‘settings…’ menu item.


Tools Menu

In the ‘primary remote (origin)’ textbox, enter the text of the SSH link for the repository on BitBucket.  You should see this on the right side of the screen on BitBucket:


​BitBucket SSH listing

You’ll need to enter the command-line to finish this…  from the repository details window, click "tools" and then "open a shell here". This should open either Git Bash or Windows PowerShell configured for git. Once that is open simply run:

git pull origin master

.. and you’re all synced up

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)

About the Author

Jeffrey T. Fritz
Telerik
United States United States
Member
An ASP.NET Developer Evangelist. Jeffrey is a software developer coach, architect, and speaker in the Microsoft.Net community. A frequent INETA contributor and a member of the AspInsiders group, Jeffrey makes regular appearances at conferences and user group meetings in an effort to grow the next generation of software developers

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 Mar 2013
Article Copyright 2013 by Jeffrey T. Fritz
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid