UNPKG

php-universal-mcp-server

Version:

Servidor MCP universal para desenvolvimento PHP e criação de sites em qualquer provedor de hospedagem

77 lines (55 loc) 2.55 kB
======================================================== DIAGNÓSTICO DE ERRO NO PUSH PARA GITHUB ======================================================== O erro ao tentar enviar para o GitHub pode ter várias causas: 1. REPOSITÓRIO REMOTO NÃO CONFIGURADO O repositório pode não estar configurado ou estar com URL incorreta. Verifique com: $ git remote -v Se não houver resultado ou estiver incorreto, configure: $ git remote add origin https://github.com/SEU_USUARIO/php-universal-mcp-server.git OU atualize: $ git remote set-url origin https://github.com/SEU_USUARIO/php-universal-mcp-server.git 2. PROBLEMAS DE AUTENTICAÇÃO O GitHub não reconhece suas credenciais. Solução: $ git config --global user.name "Seu Nome" $ git config --global user.email "seu.email@exemplo.com" Para armazenar credenciais: $ git config --global credential.helper store Para usar token (mais seguro): $ git remote set-url origin https://SEU_TOKEN@github.com/SEU_USUARIO/php-universal-mcp-server.git 3. REPOSITÓRIO NÃO EXISTE NO GITHUB É preciso criar o repositório no GitHub antes de fazer push. 1. Acesse https://github.com/new 2. Crie um repositório com nome "php-universal-mcp-server" 3. Siga as instruções para push de repositório existente 4. BRANCH DIFERENTE Você pode estar tentando enviar um branch que não existe no remoto. Verifique seu branch atual: $ git branch --show-current Use o nome correto no push: $ git push origin NOME_DO_SEU_BRANCH ======================================================== OPÇÕES PARA PROSSEGUIR COM A PUBLICAÇÃO ======================================================== OPÇÃO 1: CONTINUAR SEM GITHUB Para publicar no npm sem enviar para o GitHub: 1. Execute o arquivo 'publicar-npm.bat' Este script focará apenas na publicação no npm OPÇÃO 2: CRIAR REPOSITÓRIO NO GITHUB MANUALMENTE 1. Acesse https://github.com/new 2. Crie um repositório com nome "php-universal-mcp-server" 3. Execute no terminal: $ git remote add origin https://github.com/SEU_USUARIO/php-universal-mcp-server.git $ git push -u origin main Depois publique no npm: $ npm publish OPÇÃO 3: USAR OUTRA MÁQUINA/REPOSITÓRIO Se você tiver outro repositório Git já configurado: 1. Copie os arquivos relevantes: - src/ftp-uploader.js - docs/ftp-uploader.md - README.md atualizado 2. Adicione a dependência "basic-ftp": "^5.0.3" ao package.json 3. Publique a partir desse repositório