first-contributions icon indicating copy to clipboard operation
first-contributions copied to clipboard

unable to execute the push command

Open Teena-Jacob opened this issue 1 year ago • 3 comments

$ git push -u origin teensContribution remote: Permission to Teena-Jacob/first-contributions.git denied to TeenaJacob. fatal: unable to access 'https://github.com/Teena-Jacob/first-contributions/': T he requested URL returned error: 403

Can you help to resolve it

Teena-Jacob avatar Oct 30 '23 07:10 Teena-Jacob

Hi.

I figured it out. The reason was my local git configuration was not updated with my new git user account.

Thank you

Teena-Jacob avatar Oct 31 '23 05:10 Teena-Jacob

Please close this issue if it fixed.

Cheers

Esh07 avatar Nov 03 '23 22:11 Esh07

@Teena-Jacob Is this issue resolved? If so lets close it

kenshanta avatar Nov 23 '23 12:11 kenshanta

is this issue resolved if not i can help .

BijoySaga avatar Jan 11 '24 14:01 BijoySaga

In my case, the issue was a bug in curl 8.0.1 for Windows related to HTTP/2. One could workaround this by forcing HTTP/1.1:

git config --global http.version HTTP/1.1

for just this one push, reverting the change with:

git config --global http.version HTTP/2.

gmpsankalpa avatar Feb 25 '24 08:02 gmpsankalpa

Because git does not know you, you should tell git who are you with the following commands:

git config --global user.email "Enter your Github Email here"
#And 
git config --global user.name "Enter you Github Username"

Peter3Khalil avatar Mar 04 '24 01:03 Peter3Khalil