Add method to get Git version.