diff --git a/deploy.sh b/deploy.sh index a2adfffa..536a3d15 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,7 +1,7 @@ #!/usr/bin/env sh set -e - +rm -rf dist pnpm build cd dist @@ -17,4 +17,4 @@ git push -f git@gitee.com:fxzer/zerdocs.git main:gh-pages cd .. -rm -rf dist + diff --git "a/docs/FrontEnd/Git/Git\345\270\270\347\224\250\346\223\215\344\275\234.md" "b/docs/FrontEnd/Git/Git\345\270\270\347\224\250\346\223\215\344\275\234.md" index ff18f319..b447e475 100644 --- "a/docs/FrontEnd/Git/Git\345\270\270\347\224\250\346\223\215\344\275\234.md" +++ "b/docs/FrontEnd/Git/Git\345\270\270\347\224\250\346\223\215\344\275\234.md" @@ -269,3 +269,10 @@ npm install -g cz-conventional-changelog ```zsh git fetch --unshallow origin # 取消浅克隆,拉取完整的仓库 ``` + +## Git Module + +拉取依赖其他模块的项目时,需要初始化子模块,下列两种方式均可: + +1. `git clone --recursive https://github.com/xxx/yyy.git` +2. `git clone https://github.com/xxx/yyy.git`,`git submodule update --init --recursive`