Skip to main content

All Questions

Tagged with
2 votes
2 answers
2k views

How to amend the Git commit message through Python?

I have used subprocess.check_output to get the result of Git command but I can't think of a way how to update the commit message that we do with the command git commit -amend ?
Ciasto piekarz's user avatar
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