Gitpybinding
1.0.0
모든 GIT 및 Python 2 & 3 버전과 호환되는 Python에 대한 완전히 GIT 명령 바인딩.
pip install gitbinding
from gitbinding import Git
git = Git ( path = None , direct_output = True )
"""
path:
working directory, None = use current directory.
direct_output:
if direct_output set to False, the output is redirect to command/function return.
""" 이제 git.init() , git.clone("gitrepo destination") , git.commit() , git.push() , git.config() 등과 같은 git 명령을 실행할 수 있습니다.
"-"가있는 git 명령은 git rev-parse to git.rev_parse ()와 같은 "_"로 대체 될 수 있습니다.
git.clone("gitrepo","destination") 과 같은 별도의 함수 args에 git 명령 인수를 넣을 수도 있습니다.
git.clone ()가 오류없이 완료되면 경로는 클론 대상으로 자동 이동합니다.
git 이진 위치를 변경하려면 사용하십시오.
git.gitbin = "path/to/git/binary"