diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8a06e342..57a66af8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -128,15 +128,26 @@ PRs must pass all tests and linting requirements before they can be merged. Before starting your work on the project, set up your development environment: -1. Clone your fork of the project: +1. Clone your fork of the project (recommended to use shallow clone of develop branch): + + **Option A: Recommended for most contributors (shallow clone of develop branch):** + + ```bash + git clone --depth 1 -b develop https://github.com/YOUR_USERNAME/supervision.git + cd supervision + ``` + + Replace `YOUR_USERNAME` with your GitHub username. + + > Note: Using `--depth 1` creates a shallow clone with minimal history and `-b develop` ensures you start with the development branch. This significantly reduces download size while providing everything needed to contribute. + + **Option B: Full repository clone (if you need complete history):** ```bash git clone https://github.com/YOUR_USERNAME/supervision.git cd supervision ``` - Replace `YOUR_USERNAME` with your GitHub username. - 2. Create and activate a virtual environment: ```bash diff --git a/docs/index.md b/docs/index.md index 08fdb240..b78ce6c5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -63,7 +63,7 @@ You can install `supervision` in a === "virtualenv" ```bash # clone repository and navigate to root directory - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision # setup python environment and activate it @@ -78,7 +78,7 @@ You can install `supervision` in a === "poetry" ```bash # clone repository and navigate to root directory - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision # setup python environment and activate it diff --git a/examples/count_people_in_zone/README.md b/examples/count_people_in_zone/README.md index 0cb20955..994ffec6 100644 --- a/examples/count_people_in_zone/README.md +++ b/examples/count_people_in_zone/README.md @@ -17,7 +17,7 @@ https://github.com/roboflow/supervision/assets/26109316/f84db7b5-79e2-4142-a1da- - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/count_people_in_zone ``` diff --git a/examples/heatmap_and_track/README.md b/examples/heatmap_and_track/README.md index 2c2fc58c..2551dadb 100644 --- a/examples/heatmap_and_track/README.md +++ b/examples/heatmap_and_track/README.md @@ -11,7 +11,7 @@ supervision package for multiple tasks such as drawing heatmap annotations, trac - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/heatmap_and_track ``` diff --git a/examples/speed_estimation/README.md b/examples/speed_estimation/README.md index 08a2018b..c2e6bcbd 100644 --- a/examples/speed_estimation/README.md +++ b/examples/speed_estimation/README.md @@ -22,7 +22,7 @@ https://github.com/roboflow/supervision/assets/26109316/d50118c1-2ae4-458d-915a- - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/speed_estimation ``` diff --git a/examples/time_in_zone/README.md b/examples/time_in_zone/README.md index b40e29eb..5c91a80b 100644 --- a/examples/time_in_zone/README.md +++ b/examples/time_in_zone/README.md @@ -16,7 +16,7 @@ https://github.com/roboflow/supervision/assets/26109316/d051cc8a-dd15-41d4-aa36- - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/time_in_zone ``` diff --git a/examples/tracking/README.md b/examples/tracking/README.md index cb167712..53b8a3e5 100644 --- a/examples/tracking/README.md +++ b/examples/tracking/README.md @@ -10,7 +10,7 @@ detection and Supervision for tracking and annotation. - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/tracking ``` diff --git a/examples/traffic_analysis/README.md b/examples/traffic_analysis/README.md index feac8d91..29ed7168 100644 --- a/examples/traffic_analysis/README.md +++ b/examples/traffic_analysis/README.md @@ -13,7 +13,7 @@ https://github.com/roboflow/supervision/assets/26109316/c9436828-9fbf-4c25-ae8c- - clone repository and navigate to example directory ```bash - git clone https://github.com/roboflow/supervision.git + git clone --depth 1 -b develop https://github.com/roboflow/supervision.git cd supervision/examples/traffic_analysis ```