22 lines
475 B
Markdown
22 lines
475 B
Markdown
---
|
|
title: Clone missing submodules
|
|
type: snippet
|
|
tags: [repository,submodule]
|
|
author: chalarangelo
|
|
cover: forest-balcony
|
|
dateModified: 2021-04-13T21:10:59+03:00
|
|
---
|
|
|
|
Clones missing submodules and checks out commits.
|
|
|
|
- Use `git submodule update --init --recursive` to clone missing submodules and checkout commits.
|
|
|
|
```shell
|
|
git submodule update --init --recursive
|
|
```
|
|
|
|
```shell
|
|
git submodule update --init --recursive
|
|
# Clones missing submodules and checks out commits
|
|
```
|