def publish(branch, path = Dir.pwd, remote = 'origin')
      exit_status = 1
      error "no branch provided" if branch.nil?
      #remotes  = FalkorLib::Git.remotes(path)
      branches = FalkorLib::Git.list_branch(path)
      Dir.chdir(FalkorLib::Git.rootdir( path ) ) do
        if branches.include? "remotes/#{remote}/#{branch}"
          warning "the  remote branch '#{remote}/#{branch}' already exists"
        else
          info "Publish the branch '#{branch}' on the remote '#{remote}'"
          exit_status = run %(
                          git push #{remote} #{branch}:refs/heads/#{branch}
                          git fetch #{remote}
                          git branch -u #{remote}/#{branch} #{branch}
                )
        end
      end
      exit_status
    end
def publish(branch, path = Dir.pwd, remote = 'origin')
      exit_status = 1
      error "no branch provided" if branch.nil?
      #remotes  = FalkorLib::Git.remotes(path)
      branches = FalkorLib::Git.list_branch(path)
      Dir.chdir(FalkorLib::Git.rootdir( path ) ) do
        if branches.include? "remotes/#{remote}/#{branch}"
          warning "the  remote branch '#{remote}/#{branch}' already exists"
        else
          info "Publish the branch '#{branch}' on the remote '#{remote}'"
          exit_status = run %(
                          git push #{remote} #{branch}:refs/heads/#{branch}
                          git fetch #{remote}
                          git branch -u #{remote}/#{branch} #{branch}
                )
        end
      end
      exit_status
    end
Publish a branch on the remote