Skip to content

Commit 28684f9

Browse files
authored
Merge pull request #2356 from rust-lang/tshepang-patch-2
replace command that does not work
2 parents fae7588 + e36f9af commit 28684f9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/git.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,12 @@ Changes not staged for commit:
256256
no changes added to commit (use "git add" and/or "git commit -a")
257257
```
258258

259-
These changes are not changes to files: they are changes to submodules (more on this
260-
[later](#git-submodules)). To get rid of those, run `./x --help`, which will automatically update
261-
the submodules.
259+
These changes are not changes to files: they are changes to submodules (more on this [later](#git-submodules)).
260+
To get rid of those:
261+
262+
```console
263+
git submodule update
264+
```
262265

263266
Some submodules are not actually needed; for example, `src/llvm-project` doesn't need to be checked
264267
out if you're using `download-ci-llvm`. To avoid having to keep fetching its history, you can use

0 commit comments

Comments
 (0)