From 8984dbcec0acf01206182c0667938897ed13bb48 Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Tue, 5 Nov 2024 20:50:02 +0100 Subject: [PATCH] Add further examples of git+https support Specifically, pulling specific branches, tags, and commit hashes --- docs/guides/tools.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/guides/tools.md b/docs/guides/tools.md index b692f4ec9701..bd9d8c64489c 100644 --- a/docs/guides/tools.md +++ b/docs/guides/tools.md @@ -103,6 +103,24 @@ For example, to pull from git: $ uvx --from git+https://github.com/httpie/cli httpie ``` +You can also pull the latest commit from a specific named branch: + +```console +$ uvx --from git+https://github.com/httpie/cli@master httpie +``` + +Or pull a specific tag: + +```console +$ uvx --from git+https://github.com/httpie/cli@3.2.4 httpie +``` + +Or even a specific commit: + +```console +$ uvx --from git+https://github.com/httpie/cli@2843b87 httpie +``` + ## Commands with plugins Additional dependencies can be included, e.g., to include `mkdocs-material` when running `mkdocs`: