Digital Education Resources - Vanderbilt Libraries Digital Lab
Collaborators are determined on a repository by repository level. Granting a user access to one repository in your account does not grant them access to all.
Find out the username of the person you want to invite to collaborate with you. Either collaborator can set the repo up, but it can only be on one person’s GitHub account. If you don’t want the repo to belong to any particular person, you can set up an organization. See the lesson on managing projects for more on that.
In this example, I’m going to invite Tomy, my alter ego who uses my test baskauf
account, to share a repository on my real GitHub account baskaufs
(with an “s”). Go to a repository you want to share and click on the Settings
tab.
Click on the Manage access
link.
You may be asked to provide a password to confirm access. Click on the Invite a collaborator
button.
In the popup, start typing the name of the collaborator you want to invite and select it from the list when it appears.
Click the Add ...
button.
You should see them as a pending invitation in the list of collaborators.
When Tomy checks his email, he should see an invitation to collaborate and a link.
Sometimes the email takes too long to arrive, or gets sent to spam. If so, the invited collaborator can speed up the process by attaching /invitations
to the end of the repository URL. If they are logged into GitHub, they should see their invitation at that link.
Here is what Tomy sees when he goes to that link.
When he clicks on the Accept invitation
button, he will be taken to your repository, where he’ll see a notification at the top of the screen saying he now has push access to the shared repo.
Once the collaborator has push access, they can clone it using GitHub Desktop and start using it just as they would one of their own repos.
To clone the newly shared repository using Desktop, Tomy should drop down the arrow to the right of the current repository name, then drop down Add
, followed by Clone Repository...
.
On the GitHub.com tab, he will scroll down past his own repositories until he sees his collaborator’s account name. Under that account, he should see the newly shared repository. After he selects it and chooses the location in the directory where he wants it to go, he clicks the Clone
button and starts using it.
next page: branching and the shared repository model
Revised 2021-09-23
Questions? Contact us
License: CC BY 4.0.
Credit: "Vanderbilt Libraries Digital Lab - www.library.vanderbilt.edu"