Get the latest commit of a git repository.
Optional
The directory of the git repository.
The latest commit of the repository.
Get the latest commit of a git repository.