Thanks to visit codestin.com Credit goes to libgit2.org
Get the id (SHA1) of a repository object
the repository object
the SHA1 id