Fix documentation (projects guide) regarding adding a git dependency (#7916)

## Summary

This is a trivial, one line documentation change that fixes the
following documentation bug.

The current documentation suggests this for adding a git dependency

```
# Add a git dependency

uv add requests --git https://github.com/psf/requests
```

Executing what is suggested with `uv` version `0.4.18` results in this
error message

```
uv add requests --git https://github.com/psf/requests
error: unexpected argument '--git' found
```

The working approach is to add the git depency like this:

```
uv add git+https://github.com/psf/requests
```

## Test Plan

I manually tested the command suggested currently in the guide against
my change.
This commit is contained in:
Volker Hilsenstein 2024-10-04 12:42:18 +02:00 committed by GitHub
parent 0eb4320394
commit ca62f8855b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ $ # Specify a version constraint
$ uv add 'requests==2.31.0'
$ # Add a git dependency
$ uv add requests --git https://github.com/psf/requests
$ uv add git+https://github.com/psf/requests
```
To remove a package, you can use `uv remove`: