git submodule add https://github.com/youllook/dev-os.git .dev-os
git commit -m "chore: add dev-os submodule"
git pushcd .dev-os
# 修改文件...
git add .
git commit -m "docs: ..."
git pushgit submodule update --remote .dev-os
git commit -m "chore: update dev-os"
git pushclone 含 submodule 的專案時要多加一個參數:
git clone --recurse-submodules {專案 repo URL}或 clone 後才發現沒有 .dev-os/:
git submodule update --init