5

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.

guettli
  • 25,042
  • 81
  • 346
  • 663

1 Answers1

5

I would recommend GitPython which is full featured, very well documented and easy to use IMO. For more info, check out this answer

0x416e746f6e
  • 9,872
  • 5
  • 40
  • 68
Daniel Perez
  • 6,335
  • 4
  • 24
  • 28