Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Connecting to existing repository is unexplained #891

Description

@blake-lowe

Part question part issue:
getting-started.md has a header at the end which has no content
I would love to know how to connect to a repository from a new machine. Cheers!

Edit:
//(copied the body of a later comment for context)//

I created the project in Unity, added the GitHub for Unity plugin, then initialized a repo within unity through use of the plugin.
Next, I created a new empty repository on GitHub.com and copied the https link. I pasted that into the plugin’s remote origin field and saved the link. After making several commits and pushes everything works flawlessly.

My question arose when I tried to access the project from a different machine.

Activity

  1. f-wende commented on Aug 21, 2018

    @f-wende

    Is this even possible right now? I am somehow unable to get this work.

  2. StanleyGoldman commented on Aug 21, 2018

    @StanleyGoldman
    Contributor

    Hey guys, sorry about the lack of documentation there.
    We are still working out the kinks.

    Since Unity doesn't have plugins outside of a Unity project, we don't have an easy way of adding a clone function. But if you use your regular tools to clone your project, you can open it right up in Unity and install GitHub for Unity and everything should be just fine from there.

  3. StanleyGoldman commented on Aug 22, 2018

    @StanleyGoldman
    Contributor

    Does that solve the problem for you @f-wende or @dragonfyre23?

  4. blake-lowe commented on Aug 22, 2018

    @blake-lowe
    ContributorAuthor

    I haven't gotten a chance to test yet. Which tools are you referring to? Just downloading the project, removing the plugin by deleting the directory and opening it in unity?

  5. StanleyGoldman commented on Aug 22, 2018

    @StanleyGoldman
    Contributor

    Hey @dragonfyre23 , okay, maybe I'm making too many assumptions.

    1. Is the project on GitHub.com?
    2. Does the project already have GitHub for Unity installed?
  6. blake-lowe commented on Aug 22, 2018

    @blake-lowe
    ContributorAuthor

    You assume correctly.
    I created the project in Unity, added the GitHub for Unity plugin, then initialized a repo within unity through use of the plugin.
    Next, I created a new empty repository on GitHub.com and copied the https link. I pasted that into the plugin’s remote origin field and saved the link. After making several commits and pushes everything works flawlessly.

    My question arose when I tried to access the project from a different machine. What is the proper workflow for this? Should I clone the repository from GitHub.com? or should I make an empty project in Unity first(adding the plugin later). Cheers and thanks for the quick responses.

    PS I’m happy to add the documentation once I figure it out.

  7. StanleyGoldman commented on Aug 22, 2018

    @StanleyGoldman
    Contributor

    So yea, exactly like I was saying before, we don't have a clone function yet.
    The best suggestion we can make is to use GitHub Desktop to clone your project.
    After you have it local, just open it with Unity and everything should work as normal.
    GitHub for Unity will download any additional pieces it needs on that computer to set itself up.

    P.S. I appreciate you adding the documentation. 🎖

  8. StanleyGoldman commented on Aug 22, 2018

    @StanleyGoldman
    Contributor
  9. blake-lowe commented on Aug 23, 2018

    @blake-lowe
    ContributorAuthor

    The above steps worked for me.
    Clone project, Open in unity. I did encounter an error when pushing changes but it seems unrelated. All the same, I will post it here then close the issue so that anyone else encountering it can connect the dots. I was able to workaround by pushing through GitHub Desktop instead of the plugin.

    Fatal: HttpRequestException encountered.
    bash: /dev/tty: No such device or address
    error: failed to execute prompt script (exit code 1)
    fatal: could not read Username for 'https://github.com': Invalid argument

    I double checked my credentials and remote: origin https url as well as my system git installation location. Not sure what to think about that but I'm satisfied with the workaround for now. Cheers and thanks for the help!

  10. chubillkelvin commented on Sep 16, 2019

    @chubillkelvin

    @StanleyGoldman Hello from 2019. I just started to use Github for Unity and I still struggled to connect to an existing repository after reading from the documentation. I find this thread extremely useful in helping me to connect to an existing project (it was not obvious to me that as simple as using GitHub Desktop would be the solution). Would you maybe consider writing a few sentences on the getting started guide or simply direct new users to this thread?

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