摘要: 工程地址: https://pypi.python.org/pypi/GitPython/需要安装先安装: gitdb https://pypi.python.org/pypi/gitdbGitPython使用模块对象访问git配置库。仓库操作 初始仓库对象 from git import * repo = Repo(repo_path) assert repo.bare == False 创建裸库 repo = Repo.init(repo_path,bare=True) assert repo.bare == True 仓库数据高层接口可以新增/删除 heads/tags/remotes. 阅读全文
posted @ 2013-06-28 22:01 蓝桥书生 阅读(1594) 评论(0) 推荐(1) 编辑