pip:如何安装 git pull request [英] pip: how to install a git pull request
本文介绍了pip:如何安装 git pull request的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想安装一个带有 pip 的 git pull request 以在我的本地 virtualenv 中进行测试.我想直接从github安装,不需要创建本地git仓库.
I want to install a git pull request with pip for testing in my local virtualenv. I want to install it directly from github, without creating a local git repository.
推荐答案
您可以通过附加哈希将确切的提交添加到 URL:
You can add the exact commit to the URL by appending the hash:
pip install git+https://github.com/other-repository/project.git@remote_branch_name
示例:
pip install --user git+https://github.com/d1b/pip.git@fix_pip_build_directory
或者单次提交.但这不会更新,如果拉取请求(远程分支)更新:
Or to a single commit. But this does not get updated, if the pull request (remote branch) gets updated:
pip install --user git+https://github.com/d1b/pip.git@d89b5803db2b520e754b9b26b771d22121738637
这篇关于pip:如何安装 git pull request的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文