All calls to git should be encapsulated by the `Git` class, so that there is consistent error handling and no duplicated code.