Skip to content

multi-remote support in Desktop #1442

Closed

Description

@shiftkey

Opening this up to track a discussion around which scenarios we could/should support in Desktop.

Activity

  1. j-f1 commented on Jun 29, 2017

    @j-f1
    Contributor

    When cloning a forked repository from the macOS classic app, two remotes are generated: origin (pointing to the fork) and username, (pointing to the parent). For example, if I forked and cloned this repository, I’d get this:

    $ git remote --verbose
    desktop      https://github.com/desktop/desktop.git (fetch)
    desktop      https://github.com/desktop/desktop.git (push)
    origin  https://github.com/j-f1/forked-desktop.git (fetch)
    origin  https://github.com/j-f1/forked-desktop.git (push)
    

    However, when using the new app, I get this:

    $ git remote --verbose
    origin  https://github.com/j-f1/forked-desktop.git (fetch)
    origin  https://github.com/j-f1/forked-desktop.git (push)
    

    This makes it more difficult to keep the repo up-to-date with the parent repository.

  2. shiftkey commented on Aug 16, 2017

    @shiftkey
    MemberAuthor

    @nturaga suggested the ability to manage remotes in #2470:

    I expect to be able to click on "Repository settings", and be able to add a remote. So, maybe a "new remote" button which leads to "remote name" and "remote url".

  3. joshaber commented on Sep 15, 2017

    @joshaber
    Contributor

    We're planning to handle the specific case of forks in 1.1.

    Other than that, we don't have anything on our current roadmap.

    I'm going to add the future-proposal label to this issue and close it out.

  4. oogetyboogety commented on Mar 14, 2019

    @oogetyboogety

    @steveward

    Support for multiple remotes is a workflow requirement because Github for desktop does not allow for me to clone a public Github repository, then publish that same repository to a new remote, but not a new origin, on the corporate Github Enterprise server. I'm forced to resort to the command line. Or maybe I'm not aware of how.

    https://help.github.com/enterprise/2.2/admin/articles/moving-a-repository-from-github-com-to-github-enterprise/

  5. steveward commented on Mar 15, 2019

    @steveward
    Contributor

    @oogetyboogety thanks for your feedback! You are correct that it is not possible to work with a GitHub Enterprise remote and a GitHub remote in the same repository within GitHub Desktop -- you will have to use the command line. Is it a common scenario for you to work with the same repository that exists in both GitHub and GitHub Enterprise?

  6. YaseenTwati commented on Mar 15, 2019

    @YaseenTwati

    Hey
    Personally I don't use Github with Github Enterprise
    but its a common scenario for me to push to multiple remotes with the same repository as one of the is the production server and the other is the dev/testing one before pushing to production.

  7. suparnavg commented on Apr 15, 2019

    @suparnavg

    @steveward this would be a useful addition to the desktop client

  8. jm3 commented on Jun 10, 2019

    @jm3

    I use Dropbox as a primary remote and GH as a "releases" remote that i push too less regularly, so this would be handy for me as well.

  9. drewbaker commented on Jun 18, 2019

    @drewbaker

    I'm dealing with this with a cleint who wants us to push to a Github Enterprise account behind a VPN. Would be so handy to have two remotes, one for our regular GitHub version, and another for the clients Github Enterprise repo.

  10. gilmoskowitz commented on Feb 6, 2020

    @gilmoskowitz

    I'd like to see good support for multiple remotes in GitHub Desktop as well. At present a couple of different workflows my company uses cannot be handled with the desktop client. Here's one that should be common but doesn't seem simple to accomplish:

    +--------------+                +---------+
    | company repo |<-pull request--| my fork |        <<< on github
    +--------------+                +---------+
           |                             ^
     fetch |                             | push
           +-----------+      +----------+
                       V      |
                    +-----------+
                    | my clone  |                      <<< my laptop
                    +-----------+
    

    That's two remotes — company and mine. The origin depends on which was cloned and which was remote added. The situation gets more complex when reviewing code, as that often requires yet another remote for each contributor. I typically have between 3 and 5 remotes in any given clone to coordinate distributed team development.

    At minimum the ability to add remotes and fetch either singly or --all is important. So is the ability to pick the remote to push --set-upstream, allowing suggestions via pull request to my teammates' forks. Displaying or filtering branches by remote would be helpful.

  11. 25 remaining items

  12. huangcs427 commented on May 10, 2023

    @huangcs427

    any plan?

  13. JonSmithAsItWere commented on Jul 12, 2023

    @JonSmithAsItWere

    This is a very important feature for my workflow currently, and it's really unfortunate that it's missing from a client that pretty much does everything else exactly as I'd want it to.

    I dropped SourceTree in favor of Github Desktop, and we even switched over from Bitbucket to Github Desktop due to issues with the Bitbucket API doing strange things with the encoding of some of our files. And SourceTree has severe performance issues as your repository library grows in size. But I may have to reconsider using SourceTree since GD is the only Git GUI that I know of that doesn't innately support multiple remotes.

    Just to describe the kind of workflow I have (where this is critical), I sometimes have to reference and cherry-pick individual commits from other remote repositories that aren't in the history of the origin/upstream that I'm using. Much of the codebase across the repositories I have is fairly standardized, which makes the occasional cherry-pick to add or remove some feature possible. But these repositories are only similar enough that a cherry-pick can be used - a full-blown merge is simply not feasible or pragmatic unless I want to give myself way more work by manually confirming every relevant change.

    By having multiple remotes and being able to cherry-pick commits from those remotes, I can quickly implement a feature from one repository's codebase to my current repository. And that's why being able to use multiple remotes is invaluable for a Git GUI.

  14. crstauf commented on Jul 12, 2023

    @crstauf

    @JonSmithAsItWere I used to use SourceTree as well, and switched to Fork because of the performance issues. It's a dream.

  15. JonSmithAsItWere commented on Jul 12, 2023

    @JonSmithAsItWere

    @crstauf Thank you, I'll have to try that client at some point.

    So far I've been through SourceTree, GitKraken, Github Desktop, and now Git Tower. GD has almost every feature I need... except for this one...

  16. crstauf commented on Jul 12, 2023

    @crstauf

    @JonSmithAsItWere Yeah, I've tried those as well, and Fork has been the best for me.

  17. simon-cpp commented on Dec 4, 2023

    @simon-cpp

    +1 for adding this feature. It's a simple one, I can't believe it's not there already.

  18. NickMainAtPI commented on Dec 12, 2023

    @NickMainAtPI

    This would also be very useful when migrating a repository from one host to GitHub. I would like to setup multiple remotes so we can keep our new GitHub repo in sync until we phase out of using the old remote.

  19. diev commented on Jan 11, 2024

    @diev

    7 years of being ignored. This is highly likely just a vendor lock-in.

  20. xtools-at commented on Jan 17, 2024

    @xtools-at

    this is a dealbreaker for many. since the request was ignored for 7 years, it's probably better to find some other app...
    btw the team is linking to this issue from every other thread, but it's a closed one, so most likely no one cares anyway

  21. llcxiongmao commented on Mar 28, 2024

    @llcxiongmao

    7 years, not implement, please open again.

  22. steveward commented on May 21, 2024

    @steveward
    Contributor

    From #18657:

    GitHub Desktop currently lacks support for managing multiple remotes through its graphical user interface (GUI). This feature request aims to address this limitation and provide users with the ability to seamlessly manage multiple remote repositories directly within GitHub Desktop.

    Proposed solution
    Introduce a dedicated interface within GitHub Desktop that allows users to add, remove, and switch between multiple remotes associated with their repositories. This interface could include options to:

    Add new remotes by specifying the remote URL and a custom name.
    Remove existing remotes.
    Select a default remote for push/pull operations.
    Easily switch between remotes when viewing branches, commits, and pull requests.

    Additional context
    It's important to note that while GitHub Desktop currently supports basic remote management for the default "origin" remote, there is no built-in functionality for managing additional remotes. As a result, users often resort to using the terminal, which may not be ideal for everyone.

    Incorporating support for managing multiple remotes directly within the GitHub Desktop GUI would align with the tool's goal of providing a seamless and user-friendly Git experience. This feature would cater to the needs of users who frequently collaborate across multiple remote repositories and contribute to enhancing GitHub Desktop's overall usability.

  23. JustusAvramenko commented on Sep 8, 2024

    @JustusAvramenko

    ?!?!?!?!?!?!?!?!?!?!?

    Where is the feature?

  24. bayraak commented on Oct 29, 2024

    @bayraak

    Yes, reopen this please

  25. netcore-jroger commented on Mar 6, 2025

    @netcore-jroger

    Any updates now?

  26. sed1ka commented on Nov 6, 2025

    @sed1ka

    @steveward Can you please reopen this issue so it can at least be tracked?
    Currently, GitHub Desktop doesn’t support multiple remotes, while other Git GUI tools already provide this feature. It would be great to have this functionality considered here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions