推送到GitHub时出现403错误 [英] 403 error when pushing to GitHub
问题描述
我尝试将一个新的本地分支(名为haystack)推送到我的github仓库中:
git push -u origin haystack
但是我得到错误:
错误:请求的URL在访问 https://github.com/Grails48/airbrake-grails.git/info/refs
这是我第一次试图推动这个回购。我看了一下GitHub帐户的SSH密钥部分,它说:
tony.drago@Office100(b5 :4d:e3:8f:26:76:cd:15:8b:c8:4c:f4:a7:fd:29:c3)
(这不是真正的密钥值)
编辑您的 .git / config
文件,以便 url
使用 ssh
或 git
协议而不是 https
:
url = git@github.com:Grails48 / airbrake-grails.git
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)
Edit your .git/config
file so that the url
is using either ssh
or git
protocol instead of https
:
url = git@github.com:Grails48/airbrake-grails.git
这篇关于推送到GitHub时出现403错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!