code: def fetchall(self):
          
          try:
              self.repo.remotes.origin.fetch()
          except git.exc.GitCommandError as err:
              raise GitError(err)
docs: Fetch all refs from the upstream repo.