一、问题(本轮实测)
`draw-ui` 与 `oil-motion` 目录里**各自带一个内嵌 `.git`** ⇒ 上一次提交把它们记成了 **gitlink(子模块指针)**
⇒ 仓库里只存了一个不属于任何远端的 commit id,**别人克隆下来这两份是空的** ✗(`git status` 显示 ` m draw-ui` / ` m oil-motion` = 子模块内容有改动)。
二、处置(可回退)
· 把两处的 `.git` **挪走**(⛔ 不是删除)⇒ `归档/内嵌git-20261008/{draw-ui,oil-motion}.git`;
· `git rm --cached` 掉那两个 gitlink,再 `git add` 两个目录 ⇒ **按正常文件入库**(内容才真的进仓库)。
三、副作用(如实记)
挪走 `.git` 后,这两个技能**不能再原地 `git pull` 取上游更新**(要更新得重新拉一份覆盖);
如需恢复其本地仓库,把 `归档/内嵌git-20261008/` 里的 `.git` 挪回原处即可。
9 lines
1.4 KiB
XML
9 lines
1.4 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="138" viewBox="0 0 1200 138" role="img" aria-label="02 draw-ui 是什么">
|
|
<defs><pattern id="d" width="24" height="24" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1.2" fill="#19211f" fill-opacity=".09"/></pattern></defs>
|
|
<rect width="1200" height="138" rx="20" fill="#f3f5f0"/><rect width="1200" height="138" rx="20" fill="url(#d)"/>
|
|
<text x="54" y="34" fill="#59635f" font-family="-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC',sans-serif" font-size="16" font-weight="700" letter-spacing="2.7">DESIGN MOCKUPS · REBUILD IN CODE</text><rect x="54" y="49" width="50" height="5" rx="3" fill="#ff8a6e"/>
|
|
<text x="54" y="105" fill="#19211f" font-family="-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC',sans-serif" font-size="42" font-weight="750">draw-ui 是什么</text>
|
|
<g transform="translate(935 31)"><rect width="126" height="76" fill="#fff" stroke="#5b6bff" stroke-width="2"/><rect x="-5" y="-5" width="10" height="10" fill="#f3f5f0" stroke="#5b6bff"/><rect x="121" y="-5" width="10" height="10" fill="#f3f5f0" stroke="#5b6bff"/><rect x="-5" y="71" width="10" height="10" fill="#f3f5f0" stroke="#5b6bff"/><rect x="121" y="71" width="10" height="10" fill="#f3f5f0" stroke="#5b6bff"/></g>
|
|
<text x="1090" y="103" fill="#19211f" fill-opacity=".13" font-family="-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif" font-size="72" font-weight="800">02</text>
|
|
</svg>
|