HTTP request failed: When pushing code to Git returning Error Code 403 fatal

C:\xampp\htdocs\angulr\fullstack\backend>git push origin master

remote: Permission to blogshub/Login-and-Registration-Using-Laravel-and-Angular-with-JWT-Setup.git denied to dharmender1.

fatal: unable to access ‘https://github.com/blogshub/Login-and-Registration-Using-Laravel-and-Angular-with-JWT-Setup.git/’: The requested URL returned error: 403

How To Resolve

git remote set-url origin https://enterusername@github.com/user/repo.git

git remote set-url origin https://enterusername@github.com/user/Login-and-Registration-Using-Laravel-and-Angular-with-JWT-Setup.git

Now run git push command

C:\xampp\htdocs\angulr\fullstack\backend>git push origin master

Leave a Reply

Your email address will not be published. Required fields are marked *