Skip to content

Commit

Permalink
Merge pull request #1675 from roboflow/docs/git
Browse files Browse the repository at this point in the history
docs: πŸ“ git clone methods are extended and shallow copy method also added
  • Loading branch information
LinasKo authored Nov 25, 2024
2 parents dd0ab6a + 4bfee10 commit bbbb374
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 10 deletions.
15 changes: 13 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 https://github.com/YOUR_USERNAME/supervision.git
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
```

2. Create and activate a virtual environment:

```bash
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/count_people_in_zone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion examples/heatmap_and_track/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion examples/speed_estimation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion examples/time_in_zone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion examples/tracking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion examples/traffic_analysis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit bbbb374

Please sign in to comment.