Olá a pessoal,
Estou com um problema para realizar o git push. Quando executei o comando, a seguinte mensagem apareceu:
$ git push -u origin main
To https://github.com/italomanzine/conversor-unidades
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'https://github.com/italomanzine/conversor-unidades'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Tentei então utilizar o comando git pull conforme informado, porém a seguinte mensagem de erro surgiu:
$ git pull origin main
From https://github.com/italomanzine/conversor-unidades
* branch main -> FETCH_HEAD
fatal: refusing to merge unrelated histories
segue também o relatório do git log:
$ git log
commit bc81ece3613c39a10f91c9e8227c87cc10c3fc2d (HEAD -> main)
Author: italomanzine <italomanzine@gmail.com>
Date: Sun Dec 5 14:50:52 2021 -0300
Remoção arquivo Aluno.txt
commit 8e6b22408183cf17048b953362d593b9fd5956ba (local/main)
Author: italomanzine <italomanzine@gmail.com>
Date: Sun Dec 5 14:10:33 2021 -0300
Remoção do arquivo de vídeo
commit 52d7a8b90bb942b382715c842805d975a74d0f39
Author: italomanzine <italomanzine@gmail.com>
Date: Sun Dec 5 00:52:51 2021 -0300
Criando commit arquivo conversor unidades em c++
Alguém sabe qual é o problema que está inviabilizando os commits?