This is my code, but it is bad.

This should not be part of the docstring. This is an implementation detail and should be moved as a comment for the delayed initialization of self._git.