微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

GitPython Python 的 Git 开发包

程序名称:GitPython

授权协议: BSD

操作系统: 跨平台

开发语言: Python

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] 举报,一经查实,本站将立刻删除。

相关推荐