When doing GTI operations over HTTPS, a problem arises when pushing the command:
The requested URL returned error: 403 Forbidden while accessing
Unable to push their own application. After some searching and testing, here is the simplest solution:
On the command line, change the address of the remote repository and add your user name to the front of the address:
git remote set-url origin https://[email protected]/user/repo.git
As my original origin address is: https://github.com/shincling/Initial_test_02.git
At this point becomes: https://[email protected]/shincling/Initial_test_02.git
And then if you Push, git, Push origin master, it will pop up and it will ask you for your password
You can actually just add the password to origin and just Push it
from:
http://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed
Read More:
- Solving GitHub push error: the requested URL returned error:403 Forbidden while accessing
- Solve GitHub push error 403 Forbidden while accessing
- push failed The requested URL returned error: 403
- How to Solve Error: The requested URL returned error: 401 Unauthorized while accessing
- Git error: requested URL returned error: 403
- Git error: the requested URL returned error: 500
- curl: (22) The requested URL returned error: 404 Not Found Server does not provide clone.bundle; ig
- Girl: RPC failed; HTTP 411 curl 22 the requested URL returned error: 411 length required:
- Error: RPC failed; HTTP 504 curl 22 the requested URL returned error: 504 gateway time out
- Error in brew install: curl: (22) the requested URL returned error: 404 Not Found
- [Git & GitHub] Solution: error: failed to push some refs to’https://github.com/xxxx.git’
- GitHub upload failed: git push error: failed to push some refs to exception handling
- Git failed to submit data error: failed to push some refs to’https://github.com/XXXXXXX/gif.git’
- Solve github :error: failed to push some refs to problem
- Android studio push project to GitHub
- 404 error in accessing GitHub personal blog
- Push failed Unable to access ‘https://github.com/‘: Failed to connect to github.com port 443: Timed
- error: src refspec master does not match any error:failed to push some refs to ‘[email protected]:xxxx
- Gitpod cannot push to GitHub solution