接入项目源码子模块:smart-parking-platform @3c99299,更新元数据与README引用
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# 项目源码(交付物第 1 项)
|
||||
|
||||
本目录以 **Git 子模块(submodule)** 挂载真实交付项目,保持交付树轻量的同时,
|
||||
把「可稳定运行的完整项目源码」作为版本化引用纳入本交付包。
|
||||
|
||||
## 子模块清单
|
||||
|
||||
| 项目 | 路径 | 远程仓库 | 锁定提交 |
|
||||
| --- | --- | --- | --- |
|
||||
| 智慧停车综合管理平台 | `smart-parking-platform` | <https://code.xinmi.cloud/depei/smart-parking-platform> | `3c99299` |
|
||||
|
||||
## 克隆方式
|
||||
|
||||
```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 改造
|
||||
> 均在子模块仓库内维护。
|
||||
Submodule
+1
Submodule 项目源码/smart-parking-platform added at 3c99299381
Reference in New Issue
Block a user