I have a Git repo which a remote web server is set up to pull from. When I want to update from the active branch I just log-in and run "git pull" and all is good.
I had to rename the repo on Github and updated the reference on my remote webserver using:
git remote set-url origin https://github.com/[organisation]/[repo]
Having done this I ran:
git remote -v
This confirmed that the remote repo name had been updated, however when I run git pull subsequently I get the error:
The requested URL returned error: 403 Forbidden while accessing https://github.com/[organisation]/[repo].git/info/refs
What am I doing wrong? Did I miss a step?
Ah, got it... I was using instructions pertaining to updating if you were connecting over HTTPS, not SSH. The correct command to run in that instance is:
From: https://help.github.com/articles/changing-a-remote-s-url/