我在努力成为毕多诺人。因此,我有以下代码:
import git
import uuid
repo = git.Repo(...)
u = repo.create_remote(uuid.uuid4(), 'https://github.com/...')如果我不试着做节奏曲,我可以这么做:
repo.git.push(u.name, refspec, '--force-with-lease')...but,我试着做毕达克人。如何使用这个( --force-with-lease )对象执行git.remote.Remote推送?
u.push(refspec, help=needed)看来我可以说:
u.push(refspec, force=True)...but,我不认为那需要租赁?
发布于 2019-11-08 19:28:19
在快速查看了GitPython的源代码之后,我猜想在解释**kwargs时,它会将_转换为-。我认为正确的方法应该是:
u.push(refspec, force_with_lease=True)https://stackoverflow.com/questions/58772301
复制相似问题