(1)在gitlab上创建一个空的仓库,这个称为主模块,在这个模块里面再创建子模块。 (2)在gitlab上再次创建一个空的仓库,这个空仓库是子模块,子模块还要创建一个文件,要提交到这个模块里面,因为子模块需要有commit 信息,主模块就是要链接到子模块这个commit信息里面(如果你已经有了子模块,并且提交过commit,可以不用...
If you are using GitLab 8.12+ and your submodule is on the same GitLab server, you must update your.gitmodulesfile to userelative URLs. Since Git allows the usage of relative URLs for your.gitmodulesconfiguration, this easily allows you to use HTTP(S) for cloning all your CI jobs and ...
git submodule addhttps:///SlowClimb/ShellTools.git 添加完成后,会查看主仓库下.gitmodules文件,里面有submodule的path跟url path:相对于主仓库路径, url:下载的代码仓地址 这时候本地已经有一个submodule的配置文件信息,现在可以将其推送到主仓库上,主要推送2个文件:1. .gitmodules 2. submodule path 缺一不可。
If you are using GitLab 8.12+ and your submodule is on the same GitLab server, you must update your.gitmodulesfile to userelative URLs. Since Git allows the usage of relative URLs for your.gitmodulesconfiguration, this easily allows you to use HTTP(S) for cloning all your CI jobs and ...
Once.gitmodulesis correctly configured, you can move on toconfiguring your.gitlab-ci.yml. Using Git submodules in your CI jobs There are a few steps you need to take in order to make submodules work correctly with your CI jobs:
yum localinstall -y gitlab-runner-12.4.1-1.x86_64.rpm 1. 2. 3. 注册 gitlab-runner register 输入此命令后会提示一下操纵 输入你的gitlaburl 1. 2. 3. 4. lease enter the gitlab-ci coordinator URL (e.g. https://gitlab.com ) ...
The HTTP(S) Git protocolmust be enabledin your GitLab instance. Configuring the.gitmodulesfile If dealing withGit submodules, your project will probably have a file named.gitmodules. Let's consider the following example: Your project is located athttps://gitlab.com/secret-group/my-project. ...
The HTTP(S) Git protocolmust be enabledin your GitLab instance. Configuring the.gitmodulesfile If dealing withGit submodules, your project will probably have a file named.gitmodules. Let's consider the following example: Your project is located athttps://gitlab.com/secret-group/my-project. ...
For all other submodules not located on the same GitLab server, use the full HTTP(S) protocol URL: [submodule "project-x"]path=project-xurl=https://gitserver.com/group/project-x.git Once.gitmodulesis correctly configured, you can move on toconfiguring your.gitlab-ci.yml. ...
For submodules not located on the same GitLab server, always use the full URL: INICopy to clipboard [submodule "project-x"]path=project-xurl = https://gitserver.com/group/project-x.git Use Git submodules in CI/CD jobs Prerequisites: ...