Skip to content

Commit 43f500e

Browse files
committed
Add --depth param to clone without commit history
The param `--depth 1` in [git clone](https://git-scm.com/docs/git-clone) make a clone without commit history.
1 parent 356419f commit 43f500e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ Below is a step-by-step guide that takes you straight from downloading this boil
2424
**1. Clone this repo:**
2525

2626
```sh
27-
git clone [email protected]:developit/preact-boilerplate.git my-app
27+
git clone --depth 1 [email protected]:developit/preact-boilerplate.git my-app
2828
cd my-app
2929
```
3030

3131

3232
**2. Make it your own:**
3333

3434
```sh
35-
rm -rf .git && git init && npm init
35+
npm init
3636
```
3737

38-
> :information_source: This re-initializes the repo and sets up your NPM project.
38+
> :information_source: This sets up your NPM project.
3939
4040

4141
**3. Install the dependencies:**

0 commit comments

Comments
 (0)