Add submodule snippets

This commit is contained in:
Chalarangelo
2021-04-08 20:05:15 +03:00
parent 298abe80b7
commit e28b27604d
4 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,17 @@
---
title: Clone missing submodules
tags: repository,submodule,advanced
---
Clones missing submodules and checks out commits.
- Use `git submodule update --init --recursive` to clone missing submodules and checkout commits.
```sh
git submodule update --init --recursive
```
```sh
git submodule update --init --recursive
# Clones missing submodules and checks out commits
```