In this tutorial, we are going to learn about how to change a cloned repo remote url in git.
- Change your current working directory to the cloned git repo folder.
- To change a remote URL we need to run the
git remotecommand followed by the
and your new remote url.
Note: In the above code, you need to add your own remote url after
- Now we need to verify our remote url is changed successfully or not by running
git remotecommand followed
git remote -v
The output will look like this: