The solution is to change the address of the remote, to the correct/new remote location.
Solution 1
run this command
git config remote.origin.url git@server.com:username/repo-name.git
Solution 2 run this command
git config -e
This command will open for editing the .git/config file of the repository. you can update the url value to the new remote location.