Skip to main content

All Questions

1 vote
2 answers
4k views

getting last git commit date via passing git command to subprocess in python

I have a script in which I just need to retrieve the date in the format 2015-07-28 of the last git commit. but using git log -1 --pretty=format:"%ci" in terminal if I get Tue Jul 28 16:23:24 2015 +...
Ciasto piekarz's user avatar
3 votes
3 answers
3k views

advantage of gitPython over executing git command with subprocess?

I recently made a git command using python that executes git command using subproces.Popen so I am debating whether to take advantage of gitPython module or not ? Does it make any difference if ...
Ciasto piekarz's user avatar