rogerdudler / git-guide

git - the simple guide
http://rogerdudler.github.com/git-guide
2.19k stars 527 forks source link

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

Open marcoxavier2005 opened 3 years ago

marcoxavier2005 commented 3 years ago

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

msscsh commented 8 months ago

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.