@@ -402,28 +402,34 @@ Git
402
402
^^^
403
403
404
404
pip currently supports cloning over ``git ``, ``git+http ``, ``git+https ``,
405
- ``git+ssh ``, ``git+git `` and ``git+file ``:
405
+ ``git+ssh ``, ``git+git `` and ``git+file ``.
406
+
407
+ .. warning ::
408
+
409
+ Note that the use of ``git ``, ``git+git ``, and ``git+http `` is discouraged.
410
+ The former two use `the Git Protocol `_, which lacks authentication, and HTTP is
411
+ insecure due to lack of TLS based encryption.
406
412
407
413
Here are the supported forms::
408
414
409
- [-e] git://git.example.com/MyProject#egg=MyProject
410
415
[-e] git+http://git.example.com/MyProject#egg=MyProject
411
416
[-e] git+https://git.example.com/MyProject#egg=MyProject
412
417
[-e] git+ssh://git.example.com/MyProject#egg=MyProject
413
- [-e] git+git://git.example.com/MyProject#egg=MyProject
414
418
[-e] git+file:///home/user/projects/MyProject#egg=MyProject
415
419
416
420
Passing a branch name, a commit hash, a tag name or a git ref is possible like so::
417
421
418
- [-e] git://git.example.com/MyProject.git@master#egg=MyProject
419
- [-e] git://git.example.com/[email protected] #egg=MyProject
420
- [-e] git://git.example.com/MyProject.git@da39a3ee5e6b4b0d3255bfef95601890afd80709#egg=MyProject
421
- [-e] git://git.example.com/MyProject.git@refs/pull/123/head#egg=MyProject
422
+ [-e] git+https ://git.example.com/MyProject.git@master#egg=MyProject
423
+ [-e] git+https ://git.example.com/[email protected] #egg=MyProject
424
+ [-e] git+https ://git.example.com/MyProject.git@da39a3ee5e6b4b0d3255bfef95601890afd80709#egg=MyProject
425
+ [-e] git+https ://git.example.com/MyProject.git@refs/pull/123/head#egg=MyProject
422
426
423
427
When passing a commit hash, specifying a full hash is preferable to a partial
424
428
hash because a full hash allows pip to operate more efficiently (e.g. by
425
429
making fewer network calls).
426
430
431
+ .. _`the Git Protocol` : https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols
432
+
427
433
Mercurial
428
434
^^^^^^^^^
429
435
0 commit comments