reprograma / On5-git-e-github

Online T5 | Front-end | 2020 | Semana 1 | Git & github
5 stars 8 forks source link

Erro no envio de arquivos para repositorio. #70

Open CastanharoA opened 4 years ago

CastanharoA commented 4 years ago

Treinando aqui um novo repositorio, após versar os arquivos para o github e apos criar o repositório no Github nao estou conseguindo enviar os arquivos copiando o link do repositorio .
segue o erro:

Andreia@DESKTOP-CFEORC3 MINGW64 ~/Documents/2 - Reprograma/github/_projetos (master) $ git push origin master Enumerating objects: 7, done. Counting objects: 100% (7/7), done. Delta compression using up to 4 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 10.01 KiB | 5.01 MiB/s, done. Total 4 (delta 2), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (2/2), completed with 2 local objects. To https://github.com/CastanharoA/_projetos.git 3007d7b..cd00fe6 master -> master

Andreia@DESKTOP-CFEORC3 MINGW64 ~/Documents/2 - Reprograma/github/_projetos (master) $ git remote add origin https://github.com/CastanharoA/Page-Andreia-Castanharo.git fatal: remote origin already exists.

Andreia@DESKTOP-CFEORC3 MINGW64 ~/Documents/2 - Reprograma/github/_projetos (master) $ git push origin master Everything up-to-date

Devo renomea-los?

MaichiLydia commented 4 years ago

Sobre essa questão, vimos que o remote já tinha sido configurado, ao tentar colocar outro ele avisou que já existia:

fatal: remote origin already exists.

Para verificarmos qual era o repositorio online configurado anteriormente podemos utilizar o comando:

git remote -v

Caso queira mudar o repositorio online configurado na origin podemos colocar:

git remote set-url origin {nova_url}

Lembrando que esse comando ira sobrescrever o antigo. Para verificar se a configuração deu certo, só utilizar o git remote -v novamente.