V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Livid
V2EX  ›  Python

用 Python 操作 Git

  •  
  •   Livid · 2012-12-27 14:20:35 +08:00 via iPhone · 5700 次点击
    这是一个创建于 4136 天前的主题,其中的信息可能已经有所发展或是发生改变。
    9 条回复    1970-01-01 08:00:00 +08:00
    clino
        1
    clino  
       2012-12-27 14:23:00 +08:00
    我之前用python操作或者获取git信息用的是pygit2
    https://github.com/libgit2/pygit2
    yoyicue
        2
    yoyicue  
       2012-12-27 14:34:03 +08:00
    我之前是用的 subprocess
    aisk
        3
    aisk  
       2012-12-27 14:45:29 +08:00   ❤️ 1
    @yoyicue 要是做命令行工具调用的话推荐这个 http://amoffat.github.com/sh/
    yoyicue
        4
    yoyicue  
       2012-12-27 14:50:05 +08:00
    @aisk 谢谢 我熟悉 sh 那个代码写的时候, sh 还不流行.
    jjx
        5
    jjx  
       2012-12-27 16:29:41 +08:00
    @aisk windows 下有等效的吗?
    douglarek
        6
    douglarek  
       2012-12-27 16:36:12 +08:00
    推荐 GitPython
    aisk
        7
    aisk  
       2012-12-27 16:45:20 +08:00
    @jjx 这个就不知道了…
    timonwong
        8
    timonwong  
       2012-12-27 16:51:31 +08:00
    @jjx
    Windows下就只能用pbs了 (http://pypi.python.org/pypi/pbs)
    hahastudio
        9
    hahastudio  
       2012-12-27 17:07:38 +08:00
    前些日子看到了dulwich (https://github.com/jelmer/dulwich)觉得不错
    看了文档之后觉得建一个Git Server好像很简单= =
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   992 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:46 · PVG 04:46 · LAX 13:46 · JFK 16:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.