github: adding collaborators

giving individual users access to a private repo

The following instructions can be used to provide write access to a shared repo. These instructions are written using a private repo as an example, but they work equally well on public repos.

Here’s how, described as both a list of steps, and a list of images. In this example:

These are the steps Chris should take to invite Lauren as a collaborator:

  1. Navigate to the repo page, and click on Settings for the repo

  2. Select Collaborators & Teams from the menu at the left side of the page.

  3. On the lower half of the page, in the “Add Collaborator” section, start typing in the github id of the pair partner that you want to add as a collaborator.

    Click the github id when it appears. BE SURE IT IS ACCURATE. Otherwise, you’ll be sharing your repo with some perfect stranger. That would be very bad. So don’t do that please.

    Note: in some browsers, you have to actually click on the name that pops up—it is not sufficient to simply type in the full name. Your experience may vary.

    add-ldelplaya99-as-collaborator-50.png

  4. When inviting a user to be a collaborator, the default permission level is Write. If you are working with a pair partner, you should probably change that to Admin.

    The following image indicates how to do that. If you accidentally omit this step, then the user you are inviting will not have access to the Settings menu for the repo. (If that happens, there is information later on this page about how to fix that.)

    adjust-permissions-50.png

Accepting the invitation to Collaborate

Suppose Chris has created the repo using the cgaucho account, and has invited ldelplaya as a collaborator.

This is not sufficient for Lauren to immediately have access. Lauren must first accept the invitation.

Since the repo in question is a private repo, it will not automatically appear as a repo that Lauren has access to under Lauren’ github account.

Instead, when Chris invited Lauren as a collaborator, an email similar to the following was generated and send to whatever email Lauren verified for Lauren’ github account. The email contains a link that Lauren can click to review the invitation.

Note that if Chris provided Admin access, Lauren will have full privileges over the repo. If Chris only provided Write access (as in the example shown below), Lauren’s repo page will not have the Setting page. To fix that, see the section “Changing access levels for collaborators”, later on this page.

What if Lauren doesn’t get an invitation email?

It isn’t strictly necessary for Lauren to find the invitation email. Instead, Chris can simply provide Lauren with invitation url.

There is a place to copy the invitation url on the repo’s settings page, under Collaborators and Teams.

Changing Access Levels for Collaborators

Invitations can be issued for different levels of access.

If you’ve been invited to a repo, you can check your level of access: