您的位置:首页 > 理论基础 > 计算机网络

git push显示 returning Error Code 403 fatal: HTTP request failed

2018-03-23 10:24 549 查看
编辑
.git/config


1 [core]
2         repositoryformatversion = 0
3         filemode = true
4         bare = false
5         logallrefupdates = true
6 [remote "origin"]
7         url = https://github.com/yourusername/repository_name.git 8         url = ssh://git@github.com/yourusername/repository_name.git
9         fetch = +refs/heads/*:refs/remotes/origin/*
10 [branch "master"]
11         remote = origin
12         merge = refs/heads/master
13 [http]
14 [https]


第7行是原来的,把它修改成第8行,使用ssh传输。同时要确保现在使用的git的email在github上已验证即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git github
相关文章推荐