0
有没有人知道git commit -a
等价于gitpython?我试过repo.index.commit
,但是看不到如何添加-a选项。 repo.index.add
只添加新文件,不包含已修改的现有文件。它似乎不支持功能,如git add -u
。如何使用gitpython进行更改
我可以做类似repo.git.commit('-a')
,甚至
repo.git.add('-u')
repo.index.commit(comment)
但我认为高层次的接口应该能够这样做的。我错过了什么吗?
由于提前,
埃弗特