簡體   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