2016-03-08 108 views

回答

1

這應該工作:

origin.pull(no_ff=True) 

我相信這是傳遞參數在gitpython正確的語法。

+0

我試過了。它不起作用。我也試過:'repo.remotes.origin.pull(' - no-ff')' – Romulus

+0

'no_ff = True' should be working。它爲我工作,在一個單獨的窗口中爲'git commads'保持開啓並執行'origin.pull(no_ff = True)',我可以看到--no-ff通過'git-pull'命令。 –