Skip to content

Commit 0fd44c6

Browse files
authored
Merge pull request #844 from wangyang59/buildDoc
add submodule instructions in build_and_install doc
2 parents c1299e7 + 2489b88 commit 0fd44c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/getstarted/build_and_install/build_from_source_en.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ cd paddle
1414
git submodule update --init --recursive
1515
```
1616

17+
If you already have a local PaddlePaddle repo and have not initialized the submodule, your local submodule folder will be empty. You can simply run the last line of the above codes in your PaddlePaddle home directory to initialize your submodule folder.
18+
19+
If you have already initialized your submodule and you would like to sync with the upstream submodule repo, you can run the following command
20+
```
21+
git submodule update --remote
22+
```
23+
1724
## <span id="requirements">Requirements</span>
1825

1926
To compile the source code, your computer must be equipped with the following dependencies.

0 commit comments

Comments
 (0)