Skip to content

Tag: git

Python subprocess – git log wrong JSON Format

I tried to format git log to json but failed miserabely. I used this command for the formatting, and I don’t think this is where my problem lies, but hey you never know. These are my functions. As a result I get this file – in the wrong JSON Format. Why is this and what is wrong. output/test.json …

Git commands output in a file using python in Windows 10

I am trying This works in powershell well but if I do this using python – fatal: ‘*’ does not appear to be a git repository fatal: Could not read from remote repository. Btw, this worked! But I want all kinds of output in the file! What is the best way to do this? Answer Have a look at redir…