MohGovIL / hamagen-react-native

Israel's Ministry of Health's COVID-19 Exposure Prevention App
https://health.gov.il/
MIT License
508 stars 153 forks source link

Mention shallow clone #279

Closed emanuelb closed 4 years ago

emanuelb commented 4 years ago

From CONTRIBUTING.md:

1. [Fork this repository](https://github.com/MohGovIL/hamagen-react-native/) and then clone it locally:

  `git clone https://github.com/<yourUserName>/hamagen-react-native/`

There no mention of shallow clone (adding parameter --depth 1 --no-tags) to reduce bandwidth by avoiding downloading history if not needed, something like:


for building master (no history needed) use:
`git clone --depth 1 --no-tags https://github.com/MohGovIL/hamagen-react-native`

only if full history is needed use:

`git clone https://github.com/MohGovIL/hamagen-react-native`
kaplanlior commented 4 years ago

The user is free to choose the way he wants and to optimize it. From our side, as long as he has a clone, we're fine. No need to try and cover all possible use cases (e.g. lower bandwidth).