Returns the latest tag of a git repository.
Optional
The directory to check.
String with the latest tag or undefined if no tags are found.
Returns the latest tag of a git repository.