Files
panel-delivery-tree/项目源码/README.md
T

36 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 项目源码(交付物第 1 项)
本目录以 **Git 子模块(submodule)** 挂载真实交付项目,保持交付树轻量的同时,
把「可稳定运行的完整项目源码」作为版本化引用纳入本交付包。
## 子模块清单
| 项目 | 路径 | 远程仓库 | 锁定提交 |
| --- | --- | --- | --- |
| 智慧停车综合管理平台 | `smart-parking-platform` | <https://code.xinmi.cloud/depei/smart-parking-platform> | `dffa686` |
## 克隆方式
```bash
# 递归克隆(自动拉取子模块,浅克隆节省空间)
git clone --recurse-submodules --depth 1 <交付树仓库地址>
# 若已普通克隆,补拉子模块:
git submodule update --init --recursive --depth 1
```
## 子模块更新
当上游项目发布新版本并需要在交付树中固定时:
```bash
cd 项目源码/smart-parking-platform
git fetch origin && git checkout <新提交>
cd ../..
git add 项目源码/smart-parking-platform
git commit -m "升级子模块:smart-parking-platform 到 <新提交>"
```
> 子模块只记录「提交指针」,不复制源码内容;具体源码、Docker 部署、面板 UI 改造
> 均在子模块仓库内维护。