Skip to content

organize cloned repositories on disk by organization #264

Closed

Description

@shiftkey

This was a suggestion from one of our existing GitHub Desktop users, and addresses two common scenarios:

  • over time, after cloning many repositories the folder structure on disk becomes a flat hierarchy and is hard to navigate
  • for repositories which have the same name, there's extra work required to ensure names don't clash

Instead, Desktop:TNG should, when cloning a repository, use the organization name as a subfolder to organize things better.

e.g.

  • C:/Users/shiftkey/Documents/GitHub/repositories
    • desktop
      • desktop
      • desktop-secrets
    • github
      • blog-posts
    • octokit
      • octokit.net
      • octokit.rb

Activity

  1. pmn commented on Aug 16, 2016

    @pmn

    I really like this idea. Is there a chance that it screws up people's dev environments in any way? I can't think of a case where it would, but I do know Go prefers a known workspace directory. Just thinking through potential negative impacts.

  2. shiftkey commented on Aug 16, 2016

    @shiftkey
    MemberAuthor

    Is there a chance that it screws up people's dev environments in any way?

    Not more than we're already doing :trollface:

    but I do know Go prefers a known workspace directory.

    Is this related to setting $GOPATH or something else that my google-fu isn't discovering?

  3. joshaber commented on Aug 17, 2016

    @joshaber
    Contributor

    And presumably this would be something you could opt out of, so if it causes shenanigans, just turn it off.

  4. pmn commented on Aug 18, 2016

    @pmn

    Is this related to setting $GOPATH or something else that my google-fu isn't discovering?

    I screwed around with a few projects to see if this mattered; and it doesn't look like it does for Go. As long as there's an opt out, 👍 to this -- it seems like a great idea to me; and would add some sanity to project layouts for people who work in multiple orgs.

  5. shiftkey commented on Aug 18, 2016

    @shiftkey
    MemberAuthor

    And presumably this would be something you could opt out of, so if it causes shenanigans, just turn it off.

    On Desktop Classic we'd prompt them to specify the folder to clone the repository to each time. I'm not opposed to that behaviour for users - just thinking of ways to streamline everything by default...

  6. niik commented on Sep 12, 2016

    @niik
    Member

    On Desktop Classic we'd prompt them to specify the folder to clone the repository to each time. I'm not opposed to that behaviour for users

    I think we should go with letting users pick the location each time, with a sane default and with us remembering the last location for now. It's the only way of making sure everyone gets their way.

    I, for example, would not like the organization proposed above and with what we know about how many repositories the 'normal' user has organization seems to be a fairly low priority.

  7. shiftkey commented on May 3, 2017

    @shiftkey
    MemberAuthor

    with what we know about how many repositories the 'normal' user has organization seems to be a fairly low priority

    Yeah. I'm happy to focus elsewhere for now.

  8. locked as resolved and limited conversation to collaborators on Jul 22, 2018
  9. unlocked this conversation on Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions