GitPython API调用允许的kwargs是什么?

时间:2019-05-17 14:16:19

标签: python kwargs gitpython

我正在使用GitPython。内容丰富的文档记录了多次调用的过程。它们不直接指定可能的kwarg,而是指git命令。例如,git.remote.Remote.push()的{​​{3}}说kwargs – Additional arguments to be passed to git-push

我正在使用push(),它可以在本地Docker映像中运行,但是在CircleCI运行中失败。另外,

我正在关注GitPython docs

rv = origin.push()
print('rv[0].summary', rv[0].summary)

产生

rv[0].summary adb0be7..89bebb6

本地。远程,push()失败并

stderr = b'fatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.'

我想知道我是否可以使用kwarg传递可以解决问题的凭据(令牌或用户名/密码)。 git push -h没有列出凭据,但是也许我可以更早地通过它们。

谢谢

亚瑟

0 个答案:

没有答案