I'm using an online tool to do version control with git
but would like to change the tool once I've added a repository to the project.
How to change the remote repository (commonly called origin ) using git as version control.
I'm using an online tool to do version control with git
but would like to change the tool once I've added a repository to the project.
How to change the remote repository (commonly called origin ) using git as version control.
There are a few different answers to this question, but the one that best suited the situation was this:
git remote rm origin
git remote add origin novo_repositório_a_ser_apontado.git
Source: Stack Overflow
You can remove
git remote remove origin
add a new one with the new address
git remote add origin git://suaUrl
Changing the remote directory
git remote set-url origin git://suaUrl
Or you can rename the current one and add a new one.
git remote rename origin old-origin
git remote add origin novaurl