code: def git_push_to_master(cwd, hosts, name="all"):
      
      with sh.pushd(cwd):
          name = "juicy_deploy_%s" % name
  
          if sh.git("status", "--porcelain").strip():
              raise Exception("Repository is UNCLEAN. Commit your changes")
  
          remote_list = sh.git("remote").strip().split()
          if name in remote_list:
              sh.git("remote", "remove", name)
          sh.git("remote", "add", name, hosts[0])
          if len(hosts) > 1:
              for h in hosts:
                  sh.git("remote", "set-url", name, "--push", "--add", h)
              sh.git("push", name, "master")
              sh.git("remote", "remove", name)
docs: To push to master
      :param cwd:
      :param hosts:
      :param force:
      :return: