会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小牧牧
博客园
首页
新随笔
联系
订阅
管理
2019年3月26日
python操作git
摘要: 模块安装pip install gitpython基本用法1. 初始化from git import RepoRepo.init('/data/test2') # 创建一个git文件夹2. 添加与提交repo.index.add(['a.txt']) #将文件提交到缓存区repo.inex.commit('update new') # 将缓存区文件提交到版本库3. 回滚repo.index.che...
阅读全文
posted @ 2019-03-26 23:03 陈小木
阅读(14882)
评论(0)
推荐(0)
编辑
公告