# Adding a partner on GitHub

If you want to share your code over GitHub with your project partner you'll need to pick between the two of you whose copy of the starter code you want to work off of. For example, if users `OskiBear` and `JoeBruin` want to collaborate then they might both choose to work off of `sp26-proj2-OskiBear`. In that case `OskiBear` would navigate to "Settings", "Manage access", then "Invite teams or people" and add `JoeBruin`(see images below). `JoeBruin` should receive an email afterwards containing an invitation to the repo. Alternatively `OskiBear` can share the link to the repo after sending the invitation.

Once you both have access to the repo you your partner can clone the repo to get a local copy to work off of. From there you can share files over git, pushing and pulling updates as you collaborate. **Do not add anyone other than your project partner to your repository.** You aren't allowed to share code with any students other than your project partner for this project.

![Navigate to your sp26-proj2-yourname repo's Settings](/files/-MGvPlEYW39ukf7A6GN2)

![Go to Manage Access](/files/-MGvPlEZ8-6JfQkfPUPc)

![](/files/-MGvPlE_SyTuYVlDYBlh)

![Invite your partner (replace JoeBruin with your partner's GitHub username)](/files/-MGvPlEaw2Z7VBQtcCu3)

After following these steps your partner should receive an email containing an invitation link. Alternatively, you can share the link to the repo with your partner.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cs186.gitbook.io/project/common/adding-a-partner-on-github.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
