From 807abde2ed0feddf3cdc3d59339f1dafd456c3fd Mon Sep 17 00:00:00 2001 From: Gianmarco Date: Mon, 11 Apr 2022 21:52:16 +0200 Subject: [PATCH] docs: suggest cloning with depth=1 to avoid huge downloads (#36064) * docs: suggest cloning with depth=1 to avoid huge downloads * Update contributing.md Co-authored-by: JJ Kasper * lint-fix Co-authored-by: JJ Kasper --- contributing.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contributing.md b/contributing.md index c399aa1438a2..d4a844c08e7c 100644 --- a/contributing.md +++ b/contributing.md @@ -19,6 +19,13 @@ To develop locally: 1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device. + + If you don't need the whole git history, you can clone with depth 1 to reduce the download size (~1.6GB): + + ```sh + git clone --depth=1 https://github.com/vercel/next.js + ``` + 2. Create a new branch: ``` git checkout -b MY_BRANCH_NAME