# Working with Github organizations

```bash
# set full read permissions if you want to clone as well private repositories
export GITHUB_ACCESS_TOKEN=
export GITHUB_ORGANIZATION=
curl -s https://$GITHUB_ACCESS_TOKEN:@api.github.com/orgs/$GITHUB_ORGANIZATION/repos?per_page=200 | jq '.[].ssh_url' | xargs -n 1 git clone
```

## Change the ssh key for a single repository

```bash
git config --add --local core.sshCommand 'ssh -i ~/.ssh/another_id_rsa`
```


---

# 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://dev-notes.urbontaitis.lt/git/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.
