GitPython 介绍
gitpython 是一个 Python 库用来和 Git 资料库进行交互,提供各种级别的操作,例如高级的 git-porcelain 和低级的 git-
plumbing.
gitpython 提供了 Git 对象的抽象封装以简化数据的访问。
示例代码:
from git import * repo = Repo("/Users/mtrier/Development/git-python") assert repo.bare == False repo = Repo.init("/var/git/git-python.git", bare=True) assert repo.bare == True
GitPython 官网
https://github.com/gitpython-developers/GitPython
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。