Skip to content

Commit

Permalink
docs: mention how to add a git dependency with a subdirectory (#6218)
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Aug 23, 2022
1 parent a66f99e commit 92033c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,13 @@ poetry add git+ssh://github.com/sdispater/pendulum.git#develop
poetry add git+ssh://github.com/sdispater/pendulum.git#2.0.5
```

or make them point to a local directory or file:
or reference a subdirectory:

```bash
poetry add git+https://github.com/myorg/mypackage_with_subdirs.git@main#subdirectory=subdir
```

You can also add a local directory or file:

```bash
poetry add ./my-package/
Expand Down

0 comments on commit 92033c7

Please sign in to comment.