docs: git_workflow.md 第 2/3 章路径残留 Z:\AIworks → E:\tps-dashboard 修正
This commit is contained in:
+11
-11
@@ -71,7 +71,7 @@ git clone http://localhost:3000/simonkoson/tps-dashboard.git
|
||||
|
||||
```powershell
|
||||
# 切换到你想放项目的位置
|
||||
cd Z:\AIworks\
|
||||
cd E:\tps-dashboard\
|
||||
|
||||
# 把刚才复制的 clone 命令粘贴运行
|
||||
git clone http://localhost:3000/simonkoson/tps-dashboard.git
|
||||
@@ -88,12 +88,12 @@ done.
|
||||
|
||||
`warning: empty repository` 是**正常的**——本来就是空仓库,不是错误。
|
||||
|
||||
完成后 `Z:\AIworks\` 下多了一个 `tps-dashboard` 文件夹。
|
||||
完成后 `E:\tps-dashboard\` 下多了一个 `tps-dashboard` 文件夹。
|
||||
|
||||
### 2.3 进仓库目录
|
||||
|
||||
```powershell
|
||||
cd Z:\AIworks\tps-dashboard
|
||||
cd E:\tps-dashboard\
|
||||
```
|
||||
|
||||
之后所有 git 命令都在这个目录里跑。
|
||||
@@ -104,17 +104,17 @@ cd Z:\AIworks\tps-dashboard
|
||||
|
||||
**手动操作**(用 Windows 资源管理器):
|
||||
|
||||
1. 在 `Z:\AIworks\tps-dashboard\` 下:
|
||||
1. 在 `E:\tps-dashboard\` 下:
|
||||
- 直接拷入 `.clinerules`、`project_plan.md`、`dev_plan.md`、`README.md`(平铺四份)
|
||||
|
||||
2. 在 `Z:\AIworks\tps-dashboard\` 下**新建文件夹** `docs`,把 `git_workflow.md` 拷进去
|
||||
2. 在 `E:\tps-dashboard\` 下**新建文件夹** `docs`,把 `git_workflow.md` 拷进去
|
||||
|
||||
3. 在 `Z:\AIworks\tps-dashboard\` 下**新建文件夹** `logs`,把 `phase1_log.md` 拷进去
|
||||
3. 在 `E:\tps-dashboard\` 下**新建文件夹** `logs`,把 `phase1_log.md` 拷进去
|
||||
|
||||
**最终结构应该是**:
|
||||
|
||||
```
|
||||
Z:\AIworks\tps-dashboard\
|
||||
E:\tps-dashboard\
|
||||
├── .clinerules
|
||||
├── project_plan.md
|
||||
├── dev_plan.md
|
||||
@@ -132,7 +132,7 @@ Z:\AIworks\tps-dashboard\
|
||||
**操作**:在 VS Code 终端里执行:
|
||||
|
||||
```powershell
|
||||
cd Z:\AIworks\tps-dashboard
|
||||
cd E:\tps-dashboard\
|
||||
notepad .gitignore
|
||||
```
|
||||
|
||||
@@ -244,7 +244,7 @@ branch 'main' set up to track 'origin/main'.
|
||||
### 3.1 每天开工第一件事
|
||||
|
||||
```powershell
|
||||
cd Z:\AIworks\tps-dashboard
|
||||
cd E:\tps-dashboard\
|
||||
git status # 看看本地有没有未提交的改动
|
||||
git pull # 拉 Gitea 最新(如果别的机器推过)
|
||||
```
|
||||
@@ -268,7 +268,7 @@ Cline(MiniMax M2.7)会自动跑 git add / git commit / git push。**这是默认
|
||||
### 3.4 你自己手工提交(备选)
|
||||
|
||||
```powershell
|
||||
cd Z:\AIworks\tps-dashboard
|
||||
cd E:\tps-dashboard\
|
||||
git add -A
|
||||
git commit -m "fix: 修复登录页跳转问题"
|
||||
git push
|
||||
@@ -386,7 +386,7 @@ git push origin phase1-complete
|
||||
### Q5:换了一台机器,怎么把代码搞过来
|
||||
|
||||
```powershell
|
||||
cd Z:\AIworks\tps-dashboard
|
||||
cd E:\tps-dashboard\
|
||||
git clone http://localhost:3000/simonkoson/tps-dashboard.git
|
||||
cd tps-dashboard
|
||||
# 然后跟原来一样开工就行
|
||||
|
||||
Reference in New Issue
Block a user