pip
パッケージ マネージャーでは、次のようなさまざまな VCS からインストールgit
できます。
Pip は現在、git、git+http、および git+ssh でのクローン作成をサポートしています。
-e git://git.myproject.org/MyProject.git#egg=MyProject -e git+http://git.myproject.org/MyProject/#egg=MyProject -e git+ssh://git@myproject.org/MyProject/#egg=MyProject
ブランチ名、コミット ハッシュ、またはタグ名を渡すことも可能です。
-e git://git.myproject.org/MyProject.git@master#egg=MyProject -e git://git.myproject.org/MyProject.git@v1.0#egg=MyProject -e git://git.myproject.org/MyProject.git@da39a3ee5e6b4b0d3255bfef95601890afd80709#egg=MyProject
これは、パッケージが小さい場合は便利ですが、パッケージが大きい場合 (Django など) は非常に遅くなります。マスター ブランチの最後のコミットだけが必要な場合は--depth 1
、git clone のパラメーターを使用できます。
一般的に完全なリポジトリ履歴なしで特定のコミットのみを取得することは可能ですか? 少なくともgithubから?