Skip to content

Commit 94865f7

Browse files
committed
docs: mention how to add a git dependency with a subdirectory (python-poetry#6218)
1 parent 74d6781 commit 94865f7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/cli.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,13 @@ poetry add git+ssh://github.com/sdispater/pendulum.git#develop
348348
poetry add git+ssh://github.com/sdispater/pendulum.git#2.0.5
349349
```
350350

351-
or make them point to a local directory or file:
351+
or reference a subdirectory:
352+
353+
```bash
354+
poetry add git+https://github.com/myorg/mypackage_with_subdirs.git@main#subdirectory=subdir
355+
```
356+
357+
You can also add a local directory or file:
352358

353359
```bash
354360
poetry add ./my-package/

0 commit comments

Comments
 (0)