6

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.

1 Answer 1

5

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.