Remote repository name is changed, updating the local repository to point to new named remote repo

Viewed 44

The remote repository name was changed and I need to update my local repository to point this new remote repository. I tried setting the remote repo url like

git remote set-url origin ssh://git@bitbucket<url to remote repo>.git

but this does not work I tried using the intellij to update the project but I get

    fatal: remote error: Repository not found
The requested repository does not exist, or you do not have permission to
access it.

if i try to fetch from the gitbash, I get the same message. How to make the local repository point this name changed repo.

1 Answers

Test first your authentication:

ssh -Tv ssh://git@bitbucket

Then double/check the SSH URL

ssh://git@bitbucket/aUser/aRepository.git

(The URL is case-sensitive)

Finally, as commented, check you are the owner or user with the right repository access.

Related