Skip to content

Instantly share code, notes, and snippets.

@adw0rd
Created July 14, 2018 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adw0rd/6763366d55c8c61a0cb58e2fd56e0c85 to your computer and use it in GitHub Desktop.
Save adw0rd/6763366d55c8c61a0cb58e2fd56e0c85 to your computer and use it in GitHub Desktop.
In [1]: from git import Repo, Commit
In [2]: repo = Repo('/tmp/xxx')
In [3]: list(repo.iter_commits('master', 'README.md', max_count=1))[0].author
Out[3]: <git.Actor "Mikhail Andreev (adw0rd) <x11org@gmail.com>">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment