am working on a code which I would like to retrieve the commits from a repository on github. Am not entirely sure how to do such a thing, I got git-python but most the api’s are for opening a local git repository on the same file system.
Can someone advice?
regards,
It seems the easiest thing here is to use the commandline (I’m assuming Linux or any other Unix here, but should be the same on Windows) to clone an existing repository first:
git clone git://github.com/forsberg/misctools.git
This will create the
misctoolsdirectory.Now, from python, you can open this repository and update it using pull:
It’s all documented at http://packages.python.org/GitPython/0.3.2/tutorial.html