skip to navigation
skip to content

Not Logged In

githubhook 0.0.2

git post-commit hook for github. git remote add github, create github repo/update github repo settings

Installing

pip install github GitPython # requires
pip install githubhook

Config

git config --global user.name "github-name"
git config --global github.password "github-password"

Usage

from os.path import exists
from githubhook import create, edit
try:
    create() # git remote add github url if not exists and create remote repo
    if exists("description"):
        edit(description=open("description").read())
except Exception, e: # no internet, etc
    print str(e)

P.S.: my post-commit hook

 
File Type Py Version Uploaded on Size
githubhook-0.0.2.tar.gz (md5) Source 2012-11-25 2KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 44 downloads in the last week
  • 230 downloads in the last month