繁体   English   中英

如何在远程存储库上使用 git bisect?

[英]How to use git bisect on a remote repository?

I'm creating a Python module that would allow for users to run git bisect on a user specified repository, but I don't quite know how to make git bisect work for a remote repository, one that is not on the machine calling the function . 我不想每次都使用 git 克隆,因为这会违反直觉并且会占用大量磁盘空间。 有没有办法在远程仓库上使用 git bisect ?

不,那里没有。 git bisect需要工作树或索引,因为您需要通过某种方式访问特定修订版的内容以对其进行测试。 这必然要求您的系统上有一个存储库。

您可以使用 Git 最新版本的部分克隆来执行git clone --filter=blob:none仅克隆树和提交,然后在结帐时获取任何必要的 blob。 这将减少克隆时间,但需要您在线并在此过程中可以访问 repo 以获取所需的 blob。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM