how to add someone private repo to new repo code example
Example: how to give access in the git hub
Ask for the username of the person you're inviting as a collaborator.
Under your repository name, click Settings.
In the left sidebar, click Collaborators.
Under "Collaborators", start typing the collaborator's username.
Select the collaborator's username from the drop-down menu.
Click Add collaborator.