code: def probe_git():
      
      try:
          repo = git.Repo()
      except git.InvalidGitRepositoryError:
          LOGGER.warning(
              "We highly recommend keeping your model in a git repository."
              " It allows you to track changes and to easily collaborate with"
              " others via online platforms such as https://github.com.\n")
          return
      if repo.is_dirty():
          LOGGER.critical(
              "Please git commit or git stash all changes before running"
              " the memote suite.")
          sys.exit(1)
      return repo
docs: Return a git repository instance if it exists.