code: def get_head(self) -> Commit:
          
          head_commit = self.repo.head.commit
          return Commit(head_commit, self.path, self.main_branch)
docs: Get the head commit.
  
          :return: Commit of the head commit