Pushing to Git returning Error Code 403 fatal: HTTP request failed
Stack How?
Stackorigin – The Community of Question and Answers Latest Articles
Read More About Python List Comprehension with examples
Python List Comprehension: Python List comprehension provides a much more short syntax for creating a new list based on the values of an existing list. Advantages of List Comprehension in Python: Time Efficient than loop Space Efficient than loop Needs ...
Do not accept an offer letter from companies.
Do not accept an offer letter from companies without verifying the following points. Designation Salary Details & CTC Distribution Leave Policies Working Hours & Days Medical Coverage/Insurance Probation Period Notice Period Benefits and Perks Bonus F&F Policy
How to call API using Ajax
AJAX stands for Asynchronous JavaScript and XML and its used for to make calls to the server to fetch some data. In this article, we will learn how to implement a simple API call using AJAX technology. How to use GET ...
I just got the same problem and just figured out what’s cause.
Github seems only supports ssh way to read&write the repo, although https way also displayed ‘Read&Write’.
So you need to change your repo config on your PC to ssh way:
.git/config
file under your repo directory.url=
entry under section[remote "origin"]
.url=https://MichaelDrogalis@github.com/derekerdmann/lunch_call.git
to:
url=ssh://git@github.com/derekerdmann/lunch_call.git
That is, change all the texts before
@
symbol tossh://git
config
file and quit. now you could usegit push origin master
to sync your repo on GitHub.To definitely be able to login using
https
protocol, you should first set your authentication credential to the git Remote URI:Then you’ll be asked for a password when trying to
git push
.In fact, this is on the http authentication format. You could set a password too:
You should be aware that if you do this, your github password will be stored in plaintext in your .git directory, which is obviously undesirable.
This works for me -:
Hope it helps
For those having permission denied 403 error while using ssh(according to Xiao) or http urls try these commands
with administrator rights
Below is the solution
For Windows you can find the keys here:
control panel > user accounts > credential manager > Windows credentials > Generic credentials
Next, remove the Github keys.
In mac
1-In Finder, search for the Keychain Access app.
2In Keychain Access, search for github.com.
3-Find the “internet password” entry for github.com.
4-Edit or delete the entry accordingly.
What worked for me:
My repo was a fork and still linked to the the parents repo.
Will tell you if it is your repo or not.
Allows you to reconfigure it to your repo and then allow you to push.
I figured out my own variation of this problem.
The issue was not changing the protocol from https to ssl, but instead, setting the Github global username and email! (I was trying to push to a private repository.
Got the same kind of error. Unable to access 403. In My Case, None of these answers worked. So i tried the below, It worked.
Code pushed successfully
!macOS!
make sure you have enough permissions to push to the repository if you do then try running these commands
Pushing to Git returning Error Code 403 fatal HTTP request failed
So you need to change your repo config on your PC to ssh way:
.git/config
file under your repo directoryurl=
entry under section[remote origin]
url=https://MichaelDrogalis@github.com/derekerdmann/lunch_call.git
tourl=git@github.com/derekerdmann/lunch_call.git
. that is, change all the texts before@
symbol tossh://git
config
file and quit. now you could usegit push origin master
to sync your repo on GitHub