git-guide icon indicating copy to clipboard operation
git-guide copied to clipboard

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

Open marcoxavier2005 opened this issue 3 years ago • 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

marcoxavier2005 avatar Jul 12 '21 20:07 marcoxavier2005

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.

msscsh avatar Feb 23 '24 13:02 msscsh