- 授权协议: BSD
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://github.com/gitpython-developers/GitPython
- 软件文档: http://packages.python.org/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
