Skip to content

Commit 7a247a6

Browse files
authored
Add further examples of git+https support (#8841)
This pull request includes updates to the `docs/guides/tools.md` file to provide more detailed instructions on how to pull from a git repository using different options, using the `git+https` scheme support. It follows [asking a question in the Discord chat](https://discord.com/channels/1039017663004942429/1060247592765759518/1303270516588806214) and getting some useful guidance that was not in the docs, but makes some very useful features of `uv` easier to discover. ## Summary Tweaks to documentation: * Added instructions on how to pull the latest commit from a specific named branch. * Added instructions on how to pull a specific tag. * Added instructions on how to pull a specific commit.
1 parent 29e1b15 commit 7a247a6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/guides/tools.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,24 @@ For example, to pull from git:
103103
$ uvx --from git+https://github.com/httpie/cli httpie
104104
```
105105

106+
You can also pull the latest commit from a specific named branch:
107+
108+
```console
109+
$ uvx --from git+https://github.com/httpie/cli@master httpie
110+
```
111+
112+
Or pull a specific tag:
113+
114+
```console
115+
$ uvx --from git+https://github.com/httpie/[email protected] httpie
116+
```
117+
118+
Or even a specific commit:
119+
120+
```console
121+
$ uvx --from git+https://github.com/httpie/cli@2843b87 httpie
122+
```
123+
106124
## Commands with plugins
107125

108126
Additional dependencies can be included, e.g., to include `mkdocs-material` when running `mkdocs`:

0 commit comments

Comments
 (0)