摘要: 模块安装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) 编辑