Skip to content

Commit

Permalink
fix: 完善git-submodule.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chenlei0608 committed Oct 11, 2024
1 parent 8eb4d10 commit 596a446
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/frontend/git-submodule.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ Git 子模块是一种将外部 Git 仓库嵌入到另一个 Git 仓库中的方

下面可能会涉及的名词含义:

```
主仓库:包含子模块的代码仓库,比如 monorepo
子模块仓库:单独的某个代码仓库,它可能被某个主仓库引用作为子模块,比如 monorepo-submodule-a
子模块:指在主仓库被引用的外部代码仓库,比如 monorepo 的 apps/submodule-a
```
- 主仓库:包含子模块的代码仓库,比如 [monorepo](https://github.com/chenlei0608/monorepo)
- 子模块仓库:单独的某个代码仓库,它可能被某个主仓库引用作为子模块,比如 [monorepo-submodule-a](https://github.com/chenlei0608/monorepo-submodule-a)
- 子模块:指在主仓库被引用的外部代码仓库,比如 [monorepo](https://github.com/chenlei0608/monorepo) 的 apps/submodule-a

## 1. git submodule status

Expand Down

0 comments on commit 596a446

Please sign in to comment.