1
resposta

GIT PULL ORIGIN MASTER [ERRO]

Bom dia, estou enfrentando um problema. Preciso dar um (git pull origin master) dentro do meu repositório local (no meu pc) onde foi refatorado o layout (html). O repositório remoto (origin master), está com o backend atualizado, e eu preciso trazer essas alterações que por acaso são em muitos arquivos sem que elas sobreponham o meu layout.

Porém estou tendo problemas no git:

(master) $ git status On branch master nothing to commit, working tree clean

(master) $ git checkout -b features/alteracao-mazin Switched to a new branch 'features/alteracao-mazin'

(features/alteracao-mazin) $ git status On branch features/alteracao-mazin nothing to commit, working tree clean

(features/alteracao-mazin) $ git pull origin master From https://github/team/clientes_

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

(features/alteracao-mazin) $ git remote -v origin https://github/clientes_.git (fetch) origin https://github/clientes_.git (push)

1 resposta

Você pode usar --allow-unrelated-histories para forçar o merge

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