rogerdudler/git-guide

Como alterar a origin para enviar os arquivos para repositório em novo endereço

Opened this issue · 1 comments

Há duas formas de alterar a origin. A primeira é:

Remove a origin com:

git remote remove origin

E adicionar outra com:

git remote add origin git://suaUrl

A segunda forma é alterar diretamente assim:

git remote set-url origin git://suaUrl

O caso está relatado em: https://pt.stackoverflow.com/questions/39806/alterando-caminho-remoto-no-git

About the issue:
I believe it should be better to talk in English to facilitate the dynamics of discussions.

About the suggestion:
You would need to bring a reliable source, in this case, the documentation for the tool itself. At the same time, I also agree that this is a solution to the origin switching problem.

Could you add an excerpt from the official documentation? Otherwise, give us more time and we’ll see.