Sometimes you clone your own repo from GitHub on another machine and try to do quick updates on it, then you want to push back the changes. But when you try to get a
git push running, you get an 403 error. How come? Well it’s because when you clone your repo, you use the read-only URL provided on the repo page and your remote url is set to this read-only URL. Of course it won’t let you log in and do push operation! Fortunately it’s simple to address, just run below command:
git remote set-url https://email@example.com/user/rego.git
Next time you try to do
git push, you’ll see the lovely password prompt. Enjoy and push more codes!