Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Compartilhamento

estou tentando realizar subir para o servidor uma alteração que foi feita pela ana então criei um novo remote e usei o push mas ele não permite e eu não entendi o motivo

User@DESKTOP-9CQ8GCE MINGW64 ~/Documents/ana/servidor (master|MERGING)
$ git push origin master
To https://github.com/rapha1908/testando-git.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/rapha1908/testando-git.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
1 resposta
solução!

Fala, Rafael.

A mensagem de erro diz exatamente o que está acontecendo:

Há modificações no remote que ainda não estão no seu repositório local.

Antes de executar o push, execute o git pull origin master.

Você provavelmente já tinha enviado algumas alterações para esse origin antes, de outro repositório local.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software