WebYou can use the submodules input to the checkout action: steps : - name: Checkout repository and submodules uses: actions/checkout@v2 with : submodules: recursive. just run the command directly: steps : - name: Checkout repository uses: actions/checkout@v2 - name: Checkout submodules run: git submodule update --init … WebA git submodule is a record within a host git repository that points to a specific commit in another external repository. Submodules are very static and only track specific commits. …
Using Git submodules with GitLab CI/CD GitLab
Webrun git submodule init to initialize your local configuration file; run git submodule update to fetch all data from the project and check out the appropriate commit listed in your superproject; Another equivalent commands to initialize submodules: git submodule update --init --recursive --remote. git submodule foreach git checkout master Webrun git submodule init to initialize your local configuration file; run git submodule update to fetch all data from the project and check out the appropriate commit listed in your … half latte spec
Git Submodule Guide & Basic Commands to Get Started
WebSep 7, 2024 · Submodule Checkout Using GitHub Actions. Using the GitHub Actions CI/CD platform, you can automate submodule checkout by including it in your pipeline. The … WebSep 30, 2024 · $ git commit -m "Changed checked out revision in submodule" $ git push Updating a Git Submodule In the above steps, it was us who moved the submodule … WebApr 20, 2024 · edited. If you do have a script that checks out a git repo or you have removed submodules this script fails. I also would reorder the cleanup to the end in case of submodule changes. That's what I have now: #! /bin/sh. git reset --hard. git submodule foreach --recursive 'git checkout -- . :'. git submodule update --init --recursive. half latte option