Skip to content

Commit 5784b6c

Browse files
committed
add note on submodules
1 parent e2620a8 commit 5784b6c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/getting-started.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,16 @@ You can just do a normal git clone:
9797
git clone https://github.com/rust-lang/rust.git
9898
```
9999

100-
You don't need to clone the submodules at this time.
100+
You don't need to clone the submodules at this time. But if you want to, you
101+
can do the following:
102+
103+
```sh
104+
# first time
105+
git submodule update --init --recursive
106+
107+
# subsequent times (to pull new commits)
108+
git submodule update
109+
```
101110

102111
**Pro tip**: if you contribute often, you may want to look at the git worktrees
103112
tip in [this chapter][suggested].

0 commit comments

Comments
 (0)