add chinese for pages.cn/linux/add-apt-respository.md
This commit is contained in:
19
pages.cn/common/git-submodule.md
Normal file
19
pages.cn/common/git-submodule.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# git submodule
|
||||
|
||||
> Inspects, updates and manages submodules.
|
||||
|
||||
- Install a repository's specified submodules:
|
||||
|
||||
`git submodule update --init --recursive`
|
||||
|
||||
- Add a git repository as a submodule:
|
||||
|
||||
`git submodule add {{repository_url}}`
|
||||
|
||||
- Add a git repository as a submodule at the specified directory:
|
||||
|
||||
`git submodule add {{repository_url}} {{path/to/directory}}`
|
||||
|
||||
- Update every submodule to its latest commit:
|
||||
|
||||
`git submodule foreach git pull`
|
||||
Reference in New Issue
Block a user