Skip to content

Add an upstream to forked repositories #2364

Closed

Description

@j-f1

Description

Currently, cloning a forked repository adds an origin remote linking to the fork on GitHub. However, there is no way to fetch changes from the parent, because no remote is added for the parent.

Version

GitHub Desktop version: 0.7.0

OS version: macOS 10.12.3 (16D32)

Steps to Reproduce

  1. Fork a repo on GitHub
  2. Clone the fork with GitHub Desktop
  3. Run git remote on the command line

Expected behavior: Two remotes are present, with origin linking to the fork and upstream or username-of-parent-repo linking to the parent repo

Actual behavior: Only the origin remote is present

Reproduces how often: Always

Activity

  1. iAmWillShepherd commented on Jul 31, 2017

    @iAmWillShepherd
    Contributor

    Thanks for creating this issue. We actually already have this on our roadmap for v1.1, but didn't have an issue for it yet.

  2. joshaber commented on Sep 7, 2017

    @joshaber
    Contributor

    Scope for 1.1:

    • Add an upstream remote to forked repositories
    • Include in the periodic fetch

    Designs TBD

  3. joshaber commented on Sep 7, 2017

    @joshaber
    Contributor

    Is this something we'd do silently and automagically, or would we ask the user, similar to LFS setup?

    screen shot 2017-09-05 at 2 54 32 pm

  4. added this to the 1.1 milestone on Sep 7, 2017
  5. added
    design-input-needed
    on Sep 7, 2017
  6. j-f1 commented on Sep 7, 2017

    @j-f1
    ContributorAuthor

    I think it should be automatic since they don’t have to use the remote if they don’t want to, and it shouldn’t cause any issues, unlike LFS which requires that you pay for storage space if you use too much.

  7. changed the title [-]Add a remote linking to the parent of a forked repo when cloning[/-] [+]Add a remote linking to the parent of a forked repo[/+] on Sep 7, 2017
  8. joshaber commented on Sep 7, 2017

    @joshaber
    Contributor

    I'm leaning that way too. The only case that would cause problems is if they already have an upstream remote configured to something else. I gotta think those cases would be vanishingly rare tho.

  9. changed the title [-]Add a remote linking to the parent of a forked repo[/-] [+]Add an upstream to forked repositories[/+] on Sep 7, 2017
  10. self-assigned this
    on Sep 26, 2017
  11. removed
    design-input-needed
    on Oct 31, 2017
  12. locked as resolved and limited conversation to collaborators on Jul 19, 2018
  13. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions