Error with renamed repo in GitHub: "remote: This repository moved. Please use the new location"
The simple way is:
git remote set-url origin [updated link url https://........git]
Alternatively, if you like the long way it is:
git remote rm origin
git remote add origin [updated link]
Changing a remote's URL GitHub documentation goes into further detail.
To check the current one:
git remote -v
Then to change it:
git remote set-url origin https://github.com/YOUR-USERNAME/YOUR-REPO.git