Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

403 error when pushing to GitHub

Tags:

git

github

I'm trying to push a new local branch (named "haystack") to my github repo with:

git push -u origin haystack

But I get the error:

error: The requested URL returned error: 403 while accessing https://github.com/Grails48/airbrake-grails.git/info/refs

This is the first time I've ever tried to push to this repo. I had a look in the "SSH Keys" section of my GitHub account and it says:

tony.drago@Office100 (b5:4d:e3:8f:26:76:cd:15:8b:c8:4c:f4:a7:fd:29:c3) 

(that's not the real key value)

like image 285
Dónal Avatar asked Aug 11 '26 23:08

Dónal


1 Answers

Edit your .git/config file so that the url is using either ssh or git protocol instead of https:

url = [email protected]:Grails48/airbrake-grails.git
like image 144
K Z Avatar answered Aug 14 '26 14:08

K Z