Skip to content

Commit

Permalink
Merge pull request #6512 from sbidoul/git-ref-doc
Browse files Browse the repository at this point in the history
docs: mention installing from git refs
  • Loading branch information
cjerdonek authored May 18, 2019
2 parents 6387867 + 99b64ba commit c966484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/html/reference/pip_install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,12 @@ Here are the supported forms::
[-e] git+file:///home/user/projects/MyProject#egg=MyProject
-e [email protected]:MyProject#egg=MyProject

Passing branch names, a commit hash or a tag name is possible like so::
Passing a branch name, a commit hash, a tag name or a git ref is possible like so::

[-e] git://git.example.com/MyProject.git@master#egg=MyProject
[-e] git://git.example.com/[email protected]#egg=MyProject
[-e] git://git.example.com/MyProject.git@da39a3ee5e6b4b0d3255bfef95601890afd80709#egg=MyProject
[-e] git://git.example.com/MyProject.git@refs/pull/123/head#egg=MyProject

When passing a commit hash, specifying a full hash is preferable to a partial
hash because a full hash allows pip to operate more efficiently (e.g. by
Expand Down
1 change: 1 addition & 0 deletions news/6512.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mention that pip can install from git refs.

0 comments on commit c966484

Please sign in to comment.