If you want to change the URL of a repository to which it points to, then this post is for you. If you try the same command:
then it is not gonna work and you will probably get error like this:
fatal: remote origin already exists.
List your existing remotes in order to get the name of the remote you want to change
Change your repository’s remote url with command:
Substitute the values of USERNAME and OTHERREPOSITORY with yours.