Skip to content

Commit c8d7b3c

Browse files
authored
README.md: how to download a single example (flutter#615)
1 parent 2f6767f commit c8d7b3c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@ A collection of open source samples that illustrate best practices for
1010
The easiest way to browse through the samples in this repo (as well as a few others!)
1111
is the [visual samples index](https://flutter.github.io/samples).
1212

13+
## Tip: minimize download size
14+
15+
As this repository is quite big, you can use svn to download a single example.
16+
For example:
17+
18+
```
19+
svn co https://github.com/flutter/samples/trunk/provider_shopper
20+
```
21+
22+
You can also use a shallow clone to download just the latest revision:
23+
24+
```
25+
git clone --depth 1 https://github.com/flutter/samples.git
26+
```
27+
1328
## Interested in contributing?
1429

1530
See the [contributor's guide](CONTRIBUTING.md)!

0 commit comments

Comments
 (0)