仪表盘
版本库
文件存储
活动
搜索
登录
main
/
test
测试版本库,随便折腾。
概况
操作记录
提交次数
目录
文档
复刻
对比
blame
|
历史
|
原始文档
add tiger1
zhanggaojun
2024-08-21
4c374af3d95a72095b6248a2a2f13e5987097034
[test.git]
/
test01.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from git import Repo
import os
dirfile = os.path.abspath('d:/git/test')
repo = Repo(dirfile)
g = repo.git
while True:
try:
g.pull()
except Exception as e:
print(e)
else:
print("Successful pull!")
break