Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 6

How to Fix the Repos I've Made

Solved! Go to Solution.

I would like to include the local repository to an existing repo in a GetHub paid private repro which I have access. There is only a readme file currently in the GHrepo. I want to include my local repo in a subdirectory of the GHrepo.

 

I installed the GHDesktop to setup my local. I have a different GH login for it. I do not see how to get the GHDesktop to recognized the private GH repro.

 

What do I need to do to include my local repo up on paid private GH repo?

 

I have three other coworkers that will need to use the GHrepo. I am not sure of the terminalogy, but would they clone that GHrepo to their local machines?  How would they do that?

 

How would they setup GHDesktop?

 

I mistakenly created a parallel GHrepo on this private account. It has one file I used to test with. How to I get rid/delete this extra GHrepo?

 

Thank you

Ray

5 Replies
Solution
GitHub Staff
Message 2 of 6

Re: How to Fix the Repos I've Made

Hi @raytjos!

 

>I would like to include the local repository to an existing repo in a GetHub paid private repro which I have access. There is only a readme file currently in the GHrepo. I want to include my local repo in a subdirectory of the GHrepo.

 

Is the local project already an existing repository?

 

It sounds like you want your local repository and the remote repository that is currently on GitHub to become merged together. Here's what I would recommend doing:

 

1. Clone the remote repository using GitHub Desktop by going to `File` > `Clone Repository` > `GitHub.com` and selecting the repository from the list.

2. Once the repository has been cloned to GitHub Desktop go to the menu and select `Repository` > `Open in Explorer/Finder`

3. Add your project files to this location 

4. Switch back to GitHub Desktop

5. In the `Changes` tab you will see that your newly added project files have been added. You can now commit those changes in GitHub Desktop.

6. Once those changes have been committed click the `Push origin` button to push the changes up to your remote repository on GitHub

 

Your local and remote repository should now be synced.

 

>I installed the GHDesktop to setup my local. I have a different GH login for it. I do not see how to get the GHDesktop to recognized the private GH repro.

 

I'm not sure I understand the issue -- do you have multiple GitHub accounts? You can change accounts by going to `File` > `Options` > `Accounts`.

 

>I have three other coworkers that will need to use the GHrepo. I am not sure of the terminalogy, but would they clone that GHrepo to their local machines?  How would they do that?

 

Your coworkers could clone the repository to their local machines using GitHub Desktop or the command line. You will need to add them as collaborators -- you can read how to do that here:

 

https://help.github.com/en/articles/inviting-collaborators-to-a-personal-repository

 

>How would they setup GHDesktop?

 

They can install GitHub Desktop from http://desktop.github.com and clone the repository there.

 

>I mistakenly created a parallel GHrepo on this private account. It has one file I used to test with. How to I get rid/delete this extra GHrepo?

 

You can read how to delete a repository on GitHub here:

 

https://help.github.com/en/articles/deleting-a-repository

 

I hope that is helpful. Let me know if you have any other questions.

 

 

Community Manager
Message 3 of 6

Re: How to Fix the Repos I've Made

Let me see if I can address your various questions:

 

 

As for "include your local repo in the paid private GitHub repo", that depends on what you mean by "include"? If you want to put the contents that you have in your local repository into the paid private GitHub repository, then you can do the following:

 

  1. Clone the paid private GitHub repository to your local machine (see the "How to clone a GitHub repository" instructions above)
  2. Copy the files from your local repo to the local copy of the paid private repository
  3. Commit and push the changes

 

I hope that helps!

Copilot Lvl 2
Message 4 of 6

Re: How to Fix the Repos I've Made

This is now working.  I really appreciate all the help.

 

There is a potential issue I would like to resolve before I roll this out.  I created a new repository parallel to the existing.  This is in a corporate developer site on GitHub.  I noticed that the repo I created is tagged as private.  The existing repo is not.  May intent was not to limit access to corporate personnel but I am guessing that is what happened. 

 

So my question is 'should I make this new repo public?'  Since it is inside a corporate domain on GitHub, will it be available to the general public?

 

What is the best way to assure that all corporate collaborates have access?

 

 

 

 

Highlighted
Copilot Lvl 2
Message 5 of 6

Re: How to Fix the Repos I've Made

Follow-up

 

It looks like everyone in the corporation that has any rights, has all those rights for this repo per settings/collaboration.  

 

So the secondary question is whether I should transfer ownership.  There seems to be two options.  I can transfer it to the company-admin or to the company (which may default to the admin).  How may if determine an appropriate route?

Community Manager
Message 6 of 6

Re: How to Fix the Repos I've Made

So the secondary question is whether I should transfer ownership.

 

From your description it sounds like there are two repositories:

 

  • raytjos/some-repo
  • some-company/some-repo

 

and that you copied the contents from `raytjos/some-repo` to `some-company/some-repo`. And I assume that `some-company/some-repo` is the one that you were previously saying was private?

 

If all of the above is correct, then I have two questions:

 

  • Which repository is it you're asking about transferring the ownership of?
  • If some-company already has the code in some-company/some-repo, then why would you need to transfer ownership of raytjos/some-repo?

 

Let us know!