Skip to content

List & clone GitHub repositories #57

Closed

Description

@joshaber

Mac and Windows had different designs for this, so we'll need to decide on one.

Activity

  1. added this to the milestone on Jun 20, 2016
  2. joshaber commented on Jun 20, 2016

    @joshaber
    ContributorAuthor

    We'll also need to decide if we pre-cache the list of repos a user can clone, or just pull it down as needed. And if we wanna do searching locally vs. with API.

  3. changed the title [-]Clone GitHub repository[/-] [+]List GitHub repositories[/+] on Jun 20, 2016
  4. changed the title [-]List GitHub repositories[/-] [+]List & clone GitHub repositories[/+] on Jun 20, 2016
  5. shiftkey commented on Jun 27, 2016

    @shiftkey
    Member

    And if we wanna do searching locally vs. with API.

    I'm not sure what you mean by "searching locally" here. Could you elaborate a bit?

  6. niik commented on Jun 27, 2016

    @niik
    Member

    so we'll need to decide on one.

    ... or pick a third option. I think we ought to consider not offering the kind of browse experience that we do today and instead try to optimize the experience for cloning arbitrary repositories. Right now we support that through drag-and-drop on Windows as well as the clone in desktop button on both platforms. We could offer up a simpler clone experience which lets you put in any URL as well as supporting shorthand cloning for github repositories (ie desktop/desktop expands to `https://github.com/desktop/desktop).

    I'm not sure what you mean by "searching locally" here. Could you elaborate a bit?

    I think he means that Mac currently caches all repositories from all organizations locally and refreshes them periodically whereas we on Windows loads them on demand. We could conceivably leverage the repository search API instead.

  7. joshaber commented on Jul 6, 2016

    @joshaber
    ContributorAuthor

    This will need some design for how we show the Clone popover/menu/whatever.

  8. modified the milestones: , on Jul 6, 2016
  9. removed this from the milestone on Jul 15, 2016
  10. joshaber commented on Aug 16, 2016

    @joshaber
    ContributorAuthor

    I think we ought to consider not offering the kind of browse experience that we do today and instead try to optimize the experience for cloning arbitrary repositories.

    This feels a bit antithetical to our refocusing on GitHub, vs. being a general git client. @pmn, I'd be curious to hear your thoughts.

  11. pmn commented on Aug 23, 2016

    @pmn

    There are a couple of parts to this -- one is whether GitHub Desktop should be a GitHub client over a general git client; and the other is whether it makes sense to optimize for cloning arbitrary repositories.

    Since the focus of GitHub Desktop is changing to make it as easy and straightforward as possible to get their code onto GitHub.com or GitHub Enterprise, I don't think we need to prioritize making it as easy as possible to clone from any git URL, but if there's a way to get that for free it might be interesting. This idea from @niik was particularly interesting:

    We could offer up a simpler clone experience which lets you put in any URL as well as supporting shorthand cloning for github repositories (ie desktop/desktop expands to `https://github.com/desktop/desktop).

    Browsing through repositories to find the one to clone can be frustrating when you're in an organization with a lot of repositories (like GitHub). Desktop on Windows does a pretty good job of lessening the pain here; but I would have much preferred to be able to select with [owner]/[repo] over dealing with a dropdown. Right now I copy and paste the clone url even when using Desktop because it's a faster interaction for me.

    Supporting both of those things well plus allowing for "Open in Desktop" on the web makes it feel like we might be able to get away with using a dropdown.

  12. joshaber commented on Aug 23, 2016

    @joshaber
    ContributorAuthor

    Thanks @pmn!

    Trying to distill this into a list:

    1. Clone by arbitrary URL in an input field.
    2. Clone by owner/repo-name in an input field.
    3. Clone by "Open in Desktop" on the web.

    Does (2) mean repository searching via the API, or is it entirely a shortcut for (1)?

  13. pmn commented on Aug 23, 2016

    @pmn

    Does (2) mean repository searching via the API, or is it entirely a shortcut for (1)?

    Hmm. This raises a question about whether or not it's possible to make it a shortcut for (1), since a user may want to clone from GitHub.com or GitHub Enterprise. If there's a way to know which thing they're trying to clone from, it probably works fine as a shortcut. Otherwise, there may have to be some other method of discerning which repo is meant by the shortcut entered.

  14. joshaber commented on Aug 23, 2016

    @joshaber
    ContributorAuthor

    Yeah good point. Most users aren't using Enterprise (we no longer track this, sadly). But for people who aren't it'd be a problem.

  15. 42 remaining items

  16. rlabrecque commented on Sep 6, 2017

    @rlabrecque

    Hiding the enterprise tab is negative in that it could be annoying for muscle memory for those that have enterprise on a work machine, but not at home. And it could create confusion like: "Where's the Enterprise tab?!".
    It gives a good sales pitch area too.

    Based on the above, but with no Enterprise account:

    Clone a Repository
    GitHub   |   GitHub Enterprise   |   URL
                 -----------------
    
    You do not have a GitHub Enterprise account authenticated!
    
    If you have a GitHub Enterprise account, then you can add it in the Settings to gain access to your repositories.
                                                                        --------
                       ( clickable, closes this modal and opens the settings ^ )
    
    Otherwise, to learn more about GitHub Enterprise and to start your free trial today visit:
    https://enterprise.github.com/home
    ----------------------------------
    
    
                                                                  [Cancel] [Clone (grey/unclickable)]
    
  17. donokuda commented on Sep 6, 2017

    @donokuda
    Contributor

    Though I guess on the Publish Repository view, we always show the Enterprise tab 🤔 I'll go with that for parity.

    👍 and just for reference, we could use the same prompt in the publish repo tab.

  18. joshaber commented on Sep 6, 2017

    @joshaber
    ContributorAuthor

    💯💥

    screen shot 2017-09-06 at 1 46 01 pm

  19. donokuda commented on Sep 6, 2017

    @donokuda
    Contributor

    Fastest turnaround evar! 😄

    I'm curious if it makes sense to not render the Cancel / Clone buttons here unless we're signed in. Is it possible to conditionally render the action buttons?

  20. rlabrecque commented on Sep 6, 2017

    @rlabrecque

    Just disable the Clone button (grey/inactive) if there's no repo selected, and it might already work like that. It basically automatically fixes this too, because you can never select a repo in this case.

  21. joshaber commented on Sep 6, 2017

    @joshaber
    ContributorAuthor

    I'm curious if it makes sense to not render the Cancel / Clone buttons here unless we're signed in. Is it possible to conditionally render the action buttons?

    Yup! Again this matches the existing Publish dialog nicely.

    screen shot 2017-09-06 at 4 43 16 pm

  22. locked as resolved and limited conversation to collaborators on Jul 20, 2018
  23. unlocked this conversation on Sep 26, 2018
  24. added 3 commits that reference this issue on Mar 3, 2024
  25. added a commit that references this issue on Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

design-input-neededenhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions