Solucionado (ver solução)
Solucionado
(ver solução)
4
respostas

oq fazer erro no push

$ git push local master Enumerating objects: 9, done. Counting objects: 100% (9/9), done. Delta compression using up to 8 threads Compressing objects: 100% (6/6), done. Writing objects: 100% (9/9), 885 bytes | 442.00 KiB/s, done. Total 9 (delta 1), reused 0 (delta 0), pack-reused 0 remote: error: refusing to update checked out branch: refs/heads/master remote: error: By default, updating the current branch in a non-bare repository remote: is denied, because it will make the index and work tree inconsistent remote: with what you pushed, and will require 'git reset --hard' to match remote: the work tree to HEAD. remote: remote: You can set the 'receive.denyCurrentBranch' configuration variable remote: to 'ignore' or 'warn' in the remote repository to allow pushing into remote: its current branch; however, this is not recommended unless you remote: arranged to update its work tree to match what you pushed in some remote: other way. remote: remote: To squelch this message and still keep the default behaviour, set remote: 'receive.denyCurrentBranch' configuration variable to 'refuse'. To C:/Users/Pichau/Documents/git-e-github/servidor/ ! [remote rejected] master -> master (branch is currently checked out) error: failed to push some refs to 'C:/Users/Pichau/Documents/git-e-github/servidor/'

4 respostas

Olá Murilo, tudo bem? Seu repositório servidor foi inicializado com o comando abaixo:

git init --bare

E dentro dessa pasta servidor tem pastas como hooks, info, objects, refs e também arquivos como config, description, HEAD?

Estou perguntando isso porque pelo erro me parece que o repositório não é um repositório do tipo servidor.

Fico aguardando retorno!

sim possui hooks, info, objects, refs e também arquivos como config, description, HEAD como resolver

solução!

Nossa que estranho, você poderia tentar refazer o processo? Excluir a pasta servidor, e então criar a pasta novamente e após isso entrar dentro dessa pasta servidor e executar o comando:

git init --bare

E tentar fazer o push novamente? E fala pra gente o resultado!

deu certo