how to share a private repository on github code example
Example 1: 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.
Example 2: git get access to private repository
git clone https://strafe:[email protected]/strafe/project.git