1
resposta

erro no comando git push origin main

Olá, pessoal

Quando eu faço o comando git push origin main, aparece o seguinte erro:

PS C:\Users\usuario\Desktop\sistema-de-cadastro> git push origin main To https://github.com/PedroLuisLopesdeMoraes/sistema-de-cadastro.git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/PedroLuisLopesdeMoraes/sistema-de-cadastro.git' 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. PS C:\Users\usuario\Desktop\sistema-de-cadastro>

alguém poderia me auxiliar com isso ? :)

1 resposta

Bom dia, tudo bem?

O seu repo é privado? se for você precisa configurar ele, no link https://docs.github.com/pt/enterprise-server@3.2/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent tem mais instruções

Att,