. / . , . , .
pythonic git, , , , , git , .
, repo.untracked_files , , .
, , https://pythonhosted.org/GitPython/0.3.1/tutorial.html, , , , .
,
index = repo.index
for ( path, stage ), entry in index.entries.iteritems: pass
index.add(['SOMEFILE'])
new_commit = index.commit("YOUR COMMIT MESSAGE")
,
import git
repo = git.Repo( '/home/me/repodir' )
print repo.git.status()
print repo.git.checkout( 'origin/somebranch', b='somebranch' )
print repo.git.add( 'somefile' )
print repo.git.commit( m='my commit message' )
print repo.git.status()