![](/img/trans.png)
[英]How to clone a git repository without association with git using gitpython?
[英]GitPython — How to 'git stash' changes to a GitPython repository?
根據文檔, “直接使用git” :
如果你因為沒有被包裝而缺少功能,你可以方便地直接使用git命令。 它由每個存儲庫實例擁有。
因此,你可以調用git stash save
repo.git.stash('save')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.