Ekeon

python-jekyll-push-script

참고블로그

import sys
reload(sys)

sys.setdefaultencoding('utf-8')

import subprocess
import os

os.chdir('/path')

subprocess.call(["git", "add", "."])
subprocess.call(["git", "commit", "-m", "auto push"])
subprocess.call(["git", "push", "-u", "origin", "master"])