会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
John-Python
博客园
首页
新随笔
联系
订阅
管理
2020年3月21日
用python操作Git
摘要: 安装第三方模块 pip install gitpython 使用 from git import Repo r = Repo("C:\\Users\\robert\\Desktop\\test") # 创建一个操作对象 # git add 添加测试.txt r.index.add([r'C:\Use
阅读全文
posted @ 2020-03-21 21:57 John-Python
阅读(9556)
评论(0)
推荐(1)
编辑
公告