File size: 935 Bytes
f56a29b
 
 
 
ed07c96
f56a29b
 
 
ed07c96
f56a29b
 
 
 
 
 
 
 
 
 
 
 
 
 
ed07c96
 
f56a29b
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Clone Or Reuse Existing Repo

## Goal

Establish which MultiMind Classroom checkout will be used for setup and runtime actions.

## Procedure

1. Check whether MultiMind Classroom already exists locally.
2. If a checkout exists, show the path and ask whether to reuse it.
3. If no checkout exists, propose cloning the repo and ask for confirmation.
4. After clone, confirm dependency installation separately.

## Recommended Path

- Recommended: reuse an existing checkout if it is already on the target branch.
- Otherwise: clone a fresh checkout from GitHub, then install dependencies.

## Commands

Clone:

```bash
git clone https://github.com/THU-MultiMind/MultiMind Classroom.git
cd MultiMind Classroom
```

Install dependencies:

```bash
pnpm install
```

## Confirmation Requirements

- Ask before `git clone`.
- Ask before `pnpm install`.
- If the repo is dirty, tell the user and ask whether to continue with that checkout.