1
resposta

Enviar projeto para GitHub

Como faco para sincronizar o meu projeto com o GitHub

8) Execute o comando git push origin v0.1.0 para enviar esta tag para o GitHub; (este comando não está funcionando)

Ocorre o erro: cmorgado@vivaeh:~/Documentos/Pessoal/treinamento/git/claudia$ git push origin v0.1.0 fatal: repository 'https://github.com/claudia-morgado/alura_git/tree/master/projeto/' not found


cmorgado@vivaeh:~/Documentos/Pessoal/treinamento/git/claudia$ git remote -v local /l/disk0/cmorgado/Documentos/Pessoal/treinamento/git/repositorio/ (fetch) local /l/disk0/cmorgado/Documentos/Pessoal/treinamento/git/repositorio/ (push) origin https://github.com/claudia-morgado/alura_git/tree/master/projeto (fetch) origin https://github.com/claudia-morgado/alura_git/tree/master/projeto (push)

1 resposta

Olá Claudia, tudo bem? Esse erro:

fatal: repository 'https://github.com/claudia-morgado/alura_git/tree/master/projeto/' not found

Indica que o repositório não existe, eu pude ver aqui que seu projeto está em: https://github.com/claudia-morgado/alura_git

Então o que você deve fazer é o seguinte, primeiro excluir o remoto com o comando:

git remote remove origin

E depois adicionar novamente, porém agora com outra URL:

git remote add origin https://github.com/claudia-morgado/alura_git

Assim você vai indicar a URL corretamente, essa outra URL: https://github.com/claudia-morgado/alura_git/tree/master/projeto/ indica algo dentro da master, e na verdade só é preciso indicar o repositório.

Tenta isso e fala pra gente se funcionou!