Create a GitHub account and a private project, grant me access, and install Git and the GitHub CLI so that your AI assistant can work with your project.

## ACCOUNT & PROJECT | Setting up GitHub for your app.

GitHub allows you to store your app’s files and keep track of issues and improvements. Even if you’re working with AI, you don’t need any programming knowledge to do this.

### 01 / Create an account

01. Go to github.com and click on **Sign up**.
02. Enter your email address, choose a password and a username.
03. Follow the on-screen instructions and verify your account.

### 02 / Create a private project

01. Log in and go to github.com/new.
02. Under **Repository name**, enter the name of your app, for example my-app. A repository is where your project is stored.
03. A brief description under **Description** is optional.
04. Under **Visibility**, select **Private** (not Public).
05. Tick the **Add README** box and click **Create repository**.

**'Private' means that your project is not visible to everyone.**

## COLLABORATION & ISSUES | Granting access.

### 03 / Invite me

01. Open your new repository and click on **Settings** at the top.
02. Under ‘Access’ on the left, click on **Collaborators**.
03. Click on **Add people**.
04. Search for my GitHub username (ask me for it).
05. Select ‘My account’ and send the invitation. I still need to accept it.

### 04 / Check that ‘Issues’ is enabled

01. In Settings, go to **General**.
02. Search for **Features** and check that **Issues** is ticked. Issues allows us to keep track of problems, questions and suggestions for improvement.

### 05 / Please send me the link

01. Open your repository and copy the address at the top of your browser. For example: github.com/jouw-gebruikersnaam/mijn-app.
02. Please send me the link. You can then carry on working with AI as normal.

**Good to know**
Never share your password. A collaborator on a personal repository can edit the code as well as view Issues.

## INSTALLATION | Installing Git.

Git keeps track of changes to your app’s files. GitHub stores your project online. Install Git on the computer you’re using to work on your app with AI.

### 06 / Windows

01. Go to https://git-scm.com/download/win and download Git for Windows.
02. Open the installation file and follow the steps. The default settings are sufficient.
03. Open PowerShell via the Start menu and type:

```
git --version
```

Can you see a version number? If so, Git is installed.

### 07 / Linux

Open the Terminal via your computer’s menu. Select only the command that corresponds to your version of Linux.

**Ubuntu, Debian or Linux Mint**
```
sudo apt update
sudo apt install git
```

**Fedora**
```
sudo dnf install git
```

**Arch Linux**
```
sudo pacman -S git
```

Confirm the installation if prompted. Then check using:

```
git --version
```

Not sure which version of Linux you’re running? Ask your AI assistant for help.

## CONNECT TO GITHUB | Install GitHub CLI.

GitHub CLI (gh) is a tool that allows you to interact with GitHub via the terminal. Your AI assistant can also use it.

### 08 / Windows

Open PowerShell via the Start menu and run the following:

```
winget install --id GitHub.cli -e
```

Close PowerShell after installation and open it again.

### 09 / Linux

Open the Terminal and select the command for your version of Linux.

**Ubuntu / Debian / Linux Mint**
```
sudo apt update
sudo apt install gh
```

**Fedora**
```
sudo dnf install gh
```

**Arch Linux**
```
sudo pacman -S github-cli
```

Is this not working? See cli.github.com for the official installation instructions.

### 10 / Log in

```
gh --version
gh auth login
```

Select GitHub.com, HTTPS and confirm that Git is allowed to use your GitHub login details. Select ‘Log in via the browser’ and follow the instructions. Then check the following:

```
gh auth status
```

## WORKING WITH AI | Connect your app.

### 11 / Open your project

Open the terminal in the folder where you want to save the project. Replace the example names with your own details:

```
gh repo clone gebruikersnaam/mijn-app
```

Open the copied project folder in your AI programme. If your app already exists in another folder, ask your AI assistant to check first how you can safely transfer the existing files. Do not simply overwrite anything.

### 12 / Ask your AI assistant for help

For example, you could give your AI assistant the following command:

"Check that Git is installed and that my project is linked to my private repository on GitHub. Help me add my existing app securely. First, check which files must not be shared and ask for permission before uploading any changes."

### 13 / Save changes

A commit saves a version of your changes. A push sends that version to GitHub. A pull fetches changes from GitHub. Your AI assistant can help you with this.

**Good to know**
Never upload passwords, API keys or files such as .env. Do not share login details with your AI assistant either. The GitHub website is sufficient for simply creating and viewing issues.

