chore: 单位 4090D Phase 0 环境就绪 + 文档微调

This commit is contained in:
simonkoson
2026-05-09 13:08:26 +08:00
parent f1170dbe01
commit eafdc27185
5 changed files with 166 additions and 22 deletions
+16 -16
View File
@@ -60,7 +60,7 @@
**成功标志**:页面跳到一个新页面,显示 `tps-dashboard` 是空的,中间有一段灰底的命令提示,大概长这样(具体地址你以你那台 Gitea 的 URL 为准):
```
git clone http://你的Gitea地址/你的用户名/tps-dashboard.git
git clone http://localhost:3000/simonkoson/tps-dashboard.git
```
**把这一行复制下来,下一步要用**
@@ -70,11 +70,11 @@ git clone http://你的Gitea地址/你的用户名/tps-dashboard.git
**操作位置**:VS Code 打开任何窗口都行,在终端面板里执行(快捷键 `Ctrl + ` `)
```powershell
# 切换到你想放项目的位置(避免中文路径,推荐 D:\)
cd D:\
# 切换到你想放项目的位置
cd Z:\AIworks\
# 把刚才复制的 clone 命令粘贴运行
git clone http://你的Gitea地址/你的用户名/tps-dashboard.git
git clone http://localhost:3000/simonkoson/tps-dashboard.git
```
**期间可能要求输入 Gitea 账号密码**——输入即可,Git 会记住。
@@ -88,12 +88,12 @@ done.
`warning: empty repository` 是**正常的**——本来就是空仓库,不是错误。
完成后 `D:\` 下多了一个 `tps-dashboard` 文件夹。
完成后 `Z:\AIworks\` 下多了一个 `tps-dashboard` 文件夹。
### 2.3 进仓库目录
```powershell
cd D:\tps-dashboard
cd Z:\AIworks\tps-dashboard
```
之后所有 git 命令都在这个目录里跑。
@@ -104,17 +104,17 @@ cd D:\tps-dashboard
**手动操作**(用 Windows 资源管理器):
1.`D:\tps-dashboard\` 下:
1.`Z:\AIworks\tps-dashboard\` 下:
- 直接拷入 `.clinerules``project_plan.md``dev_plan.md``README.md`(平铺四份)
2.`D:\tps-dashboard\` 下**新建文件夹** `docs`,把 `git_workflow.md` 拷进去
2.`Z:\AIworks\tps-dashboard\` 下**新建文件夹** `docs`,把 `git_workflow.md` 拷进去
3.`D:\tps-dashboard\` 下**新建文件夹** `logs`,把 `phase1_log.md` 拷进去
3.`Z:\AIworks\tps-dashboard\` 下**新建文件夹** `logs`,把 `phase1_log.md` 拷进去
**最终结构应该是**:
```
D:\tps-dashboard\
Z:\AIworks\tps-dashboard\
├── .clinerules
├── project_plan.md
├── dev_plan.md
@@ -132,7 +132,7 @@ D:\tps-dashboard\
**操作**:在 VS Code 终端里执行:
```powershell
cd D:\tps-dashboard
cd Z:\AIworks\tps-dashboard
notepad .gitignore
```
@@ -226,7 +226,7 @@ git push -u origin main
```
Enumerating objects: ...
Writing objects: 100% (...)
To http://你的Gitea地址/你的用户名/tps-dashboard.git
To http://localhost:3000/simonkoson/tps-dashboard.git
* [new branch] main -> main
branch 'main' set up to track 'origin/main'.
```
@@ -244,7 +244,7 @@ branch 'main' set up to track 'origin/main'.
### 3.1 每天开工第一件事
```powershell
cd D:\tps-dashboard
cd Z:\AIworks\tps-dashboard
git status # 看看本地有没有未提交的改动
git pull # 拉 Gitea 最新(如果别的机器推过)
```
@@ -268,7 +268,7 @@ Cline(Sonnet → DeepSeek)会自动跑 git add / git commit / git push。**这
### 3.4 你自己手工提交(备选)
```powershell
cd D:\tps-dashboard
cd Z:\AIworks\tps-dashboard
git add -A
git commit -m "fix: 修复登录页跳转问题"
git push
@@ -386,8 +386,8 @@ git push origin phase1-complete
### Q5:换了一台机器,怎么把代码搞过来
```powershell
cd D:\
git clone http://你的Gitea地址/你的用户名/tps-dashboard.git
cd Z:\AIworks\tps-dashboard
git clone http://localhost:3000/simonkoson/tps-dashboard.git
cd tps-dashboard
# 然后跟原来一样开工就行
```