From c8d7b3c10403d794f7bb5cfc68b1c84fb520e87a Mon Sep 17 00:00:00 2001 From: Noam Yorav-Raphael Date: Sun, 31 Jan 2021 08:12:29 +0200 Subject: [PATCH] README.md: how to download a single example (#615) --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 50a0d1e0f..7ccfdb0a0 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,21 @@ A collection of open source samples that illustrate best practices for The easiest way to browse through the samples in this repo (as well as a few others!) is the [visual samples index](https://flutter.github.io/samples). +## Tip: minimize download size + +As this repository is quite big, you can use svn to download a single example. +For example: + +``` +svn co https://github.com/flutter/samples/trunk/provider_shopper +``` + +You can also use a shallow clone to download just the latest revision: + +``` +git clone --depth 1 https://github.com/flutter/samples.git +``` + ## Interested in contributing? See the [contributor's guide](CONTRIBUTING.md)!