def METHOD_NAME(self, commit='origin'):
    repo = Repo(self.path)
    # Fix: `error: Your local changes to the following files would be overwritten by merge`,
    # because WSL2 Docker set 755 file permissions instead of 644, this results to the error.
    repo.git.fetch(all=True)
    repo.git.reset(commit, hard=True)
    self.have_info_from_repo = False