def delete_temporary_git_objects(self):
    for remote, _ in Package.get_git_remotes(self.working_copy,
                                             self.subprocess_runner):
      if remote.startswith(GIT_GENERATED_PREFIX):
        self.subprocess_runner.check_call(
            ['git', 'remote', 'rm', remote], cwd=self.working_copy)

    for branch in Package.get_git_branches(self.working_copy,
                                           self.subprocess_runner):
      if branch.startswith(GIT_GENERATED_PREFIX):
        self.delete_git_branch(branch)

    for dependency in self.dependencies:
      dependency.delete_temporary_git_objects()
Delete temporary git objects created by this module.
dataset/ETHPy150Open google/fplutil/disttools/push_package.py/Package.delete_temporary_git_objects