'Push all the local repositories current target branch to origin.
This will skip any local repositories that are not currently in the
target branch.'

def push_all_to_origin_if_target_branch(self):

    all_repos = (self.__REQUIRED_REPOSITORIES + self.__extra_repositories)
    for repository in all_repos:
        self.push_to_origin_if_target_branch(repository)
