# GitHub Setup

To be added to the current GitHub repositories, please Slack your project leader your GitHub username

## Setting up SSH

To authenticate your local computer, you need a way to confirm your identity with GitHub. To do this, we recommend using SSH. You can read more here: <https://www.cloudflare.com/learning/access-management/what-is-ssh/>

To set up SSH, follow these steps

1. Create a SSH key if you don't already have one. Open a terminal and run the following. Please DO NOT USE COMMAND PROMPT.&#x20;
   1. `cd ~/.ssh`
   2. `ls`
   3. Check if you have a file that ends in `.pub`. Examples include `id_rsa.pub` or `id_ed25519.pub`.
   4. If you do, run `cat <pubkey file>` and copy the key
   5. If you don't have a file like that, please run `ssh-keygen -t ed25519` to create a SSH key and then copy the key.
2. Navigate to GitHub's interface and click on your profile picture, then click `SSH and GPG Keys`. Add your SSH key you copied above into GitHub

## Cloning a repository

Navigate to the repository and click the green "clone" button. Select "SSH" as the tab option and copy the link:

<figure><img src="/files/tnUrtmDH14Wida8RC0qq" alt=""><figcaption></figcaption></figure>

Then navigate to a suitable location to clone the repository, such as `~/Documents` and run:

`git clone <ssh link>`

Congrats, you've clone the repository! Now just navigate into the repository and run VS Code!


---

# 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://wiki.berkie.ee/techops/getting-started-projects/getting-started-with-techops-projects/github-setup.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.
