I want to check if there are uncommited changes, or if there are unpushed commits in a git repository with python.
I could use subprocess, but a library would be better.
On pypi are several libraries with different quality. At the moment I don't know which one to choose.
I would recommend GitPython which is full featured, very well documented and easy to use IMO. For more info, check out this answer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With