How to Fix the Repos I've Made #21732
-
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 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
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:
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 >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. |
Beta Was this translation helpful? Give feedback.
-
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:
I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
> So the secondary question is whether I should transfer ownership. From your description it sounds like there are two repositories:
and that you copied the contents from If all of the above is correct, then I have two questions:
Let us know! |
Beta Was this translation helpful? Give feedback.
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:
Clone the remote repository using GitHub Desktop by going to
File
>Clone Repository
>GitHub.com
and selecting the repository from the list.Once the repository has been cloned to GitHub Desktop go to the menu and select
Repos…