In [ ]:
    
!date #last update
    
Required:
In [ ]:
    
import os.path, gitpath #pip install git+'https://github.com/ruxi/python-gitpath.git'
os.chdir(gitpath.root()) # changes path to .git root
#os.getcwd() #check current work directory
    
by Ruxi
Feb 8, 2016
Saving
In [18]:
    
py_commit_msg = """
templating py_commit_msg
"""
    
In [21]:
    
%%bash -s "$py_commit_msg"
echo $1
git add --all :/
git commit -a -m "$1" #message from py_commit_msg
git push origin master
    
    
    
Pulling
git fetch --all
git pull origin master
In [ ]: