我正在寻找一种等效的方法来获取gitpython。
git fetch --quiet --all如何在python中执行git抓取?
发布于 2016-10-05 15:46:03
fetch method等同于发出git fetch。因此,您可以通过分别迭代和获取每个遥控器来获取所有遥控器:
repo = git.Repo('name_of_repo')
for remote in repo.remotes:
remote.fetch()https://stackoverflow.com/questions/39868114
复制相似问题