Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
web_component
submodule
Commits
33a6b90b
Commit
33a6b90b
authored
Jul 09, 2023
by
李晓静
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://apollo.mttop.cn/gitlab/web_component/submodule
parents
75d39d62
3877dbac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
README.md
README.md
+1
-1
No files found.
README.md
View file @
33a6b90b
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
## 子模块的添加
## 子模块的添加
*
本厂库作为主项目的submodule使用,在使用时,在项目中规范使用submodule目录作为该子模块的根目录
*
本厂库作为主项目的submodule使用,在使用时,在项目中规范使用submodule目录作为该子模块的根目录
*
切换至项目根目录
*
切换至项目根目录
*
git submodule add
<submoduleURL>
<submodulePATH>
我们约定 'git submodule add http://apollo.mttop.cn/gitlab/web_component/submodule.git src/submodule'
*
git submodule add
<submoduleURL>
<submodulePATH>
我们约定 'git submodule add http://apollo.mttop
group
.cn/gitlab/web_component/submodule.git src/submodule'
*
执行成功后 git status会看到项目中修改了.gitmodules,并增加了一个新文件(为刚刚添加的路径)即src下多了一个submodule的文件
*
执行成功后 git status会看到项目中修改了.gitmodules,并增加了一个新文件(为刚刚添加的路径)即src下多了一个submodule的文件
*
git diff --cached查看修改内容可以看到增加了子模块,并且新文件下为子模块的提交hash摘要
*
git diff --cached查看修改内容可以看到增加了子模块,并且新文件下为子模块的提交hash摘要
*
git commit提交即完成子模块的添加
*
git commit提交即完成子模块的添加
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment