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

Problema no push e pull

$ git push origin master To http://gitlab.benner.com.br/stag012/teste.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'http://gitlab.benner.com.br/stag012/teste.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.

Estou tendo esse problema e não consigo resolver

5 respostas

Oi, tudo bem?

O que acontece quando você tenta executar um git pull e em seguida um git push origin master?

$ git pull origin master From http://gitlab.benner.com.br/stag012/teste

  • branch master -> FETCH_HEAD fatal: refusing to merge unrelated histories

isso é o que aparece no pull e o push é a mesma mensagem de antes

solução!

E ao tentar git pull --rebase?

Funcionou, muito Grato.

Disponha :)

Como sua dúvida foi solucionada, estou fechando o tópico, ok?

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