Use GitHub for Windows for both Bitbucket and GitHub

Is it possible to use GitHub for Windows for both Bitbucket and GitHub at once?

For example, can I have repo on both sites show up in the program, and when I commit/synch a repo, it push to the respective repo on the respective website?

  • Bitbucket Server Pull Request
  • Change version file automatically on commit with git
  • Bitbucket repo is over the 2 GB limit issue
  • Trying to push to BitBucket but I get “master conq: repository access denied.” “fatal: The remote end hung up unexpectedly”
  • git clone from bitbucket.org is not working by https
  • How to change a past git commit+push message in RubyMine?
  • Can git checkout to remote branch without pulling files?
  • Github commit messages to Skype chat bot
  • My Android Project has are now Colored Red after Experimenting with CVS in android studio
  • Not able to push changes to github
  • Temporarily revert to git commit and push to servers
  • Alternatives to github network graph viewer?
  • 3 Solutions collect form web for “Use GitHub for Windows for both Bitbucket and GitHub”

    No, if you mean: having a local repo with two remotes (one GitHub and one Bitbucket).
    You can define only one remote with that client, and it will be either a GitHub one or a Bitbucket one.


    Yes, if you limit to one remote, you can use GitHub for Windows with any upstream repo.

    The process of adding an upstream repo is now easier with the (constantly) updated GitHub for Windows app:

    select the URL and then drag the text from your browser, and drop it into the GitHub for Windows app. It will automatically add the repository.

    draganddrop


    (Original answer February 2013)

    In order for “GitHub for Windows” to publish (instead of “pushing to GitHub”), you need to define a remote “origin” (in the settings of your local repo) using the https address of the Bitbucket repo:

    https://user@bitbucket.org/user/repo
    

    So if you create a local repo through “GitHub for Windows”, you can add, through its settings, the right remote:

    remote

    Note that the first refresh will trigger a login screen, in order for you to enter your http credential you are using on bitbucket.org: they will be cached (and encrypted) by GitHub for Windows for the duration of your current session.

    login

    (See “Password Caching” and “git: ‘credential-cache‘ is not a git command”, for more on that credential caching mechanism, recently introduced with Git 1.7.9+)

    Any modification you are doing locally will be picked up by the GitHub for Windows client (you might need to exit the repo (left arrow in the top left corner of the GitHub for Windows client, and click again on your local Bitbucket repository: that will trigger a refresh):

    commit

    The key in the next screenshot is in the word “publish” (instead of “push to GitHub“).
    That is because the remote “origin” is an https one.

    publish in GitHub app

    Click on “publish” and you will see your repo status set to “in sync“:

    in sync

    Rush to bitbucket.org to check if, indeed GitHub for Windows did push to Bitbucket:

    published

    There is also a new windows client that you can use with bitbucket.
    I tried it today and i think it is a better product.

    http://www.sourcetreeapp.com/

    There is now an even easier way to get GitHub for Windows to connect to your Bitbucket account. Check out the link below.

    http://www.infragistics.com/community/blogs/david_burela/archive/2013/03/31/using-the-github-for-windows-app-with-bitbucket.aspx

    Git Baby is a git and github fan, let's start git clone.