We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the last commit?
The text was updated successfully, but these errors were encountered:
import git repo = git.Repo("local/path/to/repo/") commit = repo.head.commit
See documentation: https://gitpython.readthedocs.io/en/stable/tutorial.html#the-commit-object
Sorry, something went wrong.
Better - read docs, ask questions, e.g. on stackoverflow (it's not an issue).
See http://gitpython.readthedocs.io/en/stable/intro.html#getting-started
I believe this question has been answered.
For those passing through here : https://stackoverflow.com/a/21431791/11120444
No branches or pull requests
How to get the last commit?
The text was updated successfully, but these errors were encountered: