Skip to content
Advertisement

Git commands output in a file using python in Windows 10

I am trying

JavaScript

This works in powershell well but if I do this using python –

JavaScript

fatal: ‘*’ does not appear to be a git repository fatal: Could not read from remote repository.

JavaScript

Btw, this worked! But I want all kinds of output in the file!

What is the best way to do this?

Advertisement

Answer

Have a look at redirection from command prompt (different from powershell)

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement