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)
但我認爲高層次的接口應該能夠這樣做的。我錯過了什麼嗎?
由於提前,
埃弗特