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

Erro: git push local master

Oi, alguém pode me ajudar a resolver? Obrigada!

Daniela Conceiçao@LAPTOP-PT1ILH8K MINGW64 ~/OneDrive/Documentos/Alura curso/git-github/git (master) $ git push local master Enumerating objects: 6, done. Counting objects: 100% (6/6), done. Delta compression using up to 8 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (6/6), 684 bytes | 684.00 KiB/s, done. Total 6 (delta 0), 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/Daniela Conceiçao/OneDrive/Documentos/Alura curso/git-github/servidor/ ! [remote rejected] master -> master (branch is currently checked out) error: failed to push some refs to 'C:/Users/Daniela Conceiçao/OneDrive/Documentos/Alura curso/git-github/servidor/'

2 respostas
solução!

Daniela, isso parece muito com o que aconteceu comigo... No meu caso eu não posicionei os repositórios da mesma forma que o professor, e acabei criando o repositório da "Ana" dentro do repositório do "Vinícius". Eu te aconselho a fazer como o professor, e criar os repositórios dentro da mesma pasta, mas separadamente. Espero ter ajudado =D

Oi Irene, conseguir resolver. Obrigada!