2019独角兽企业重金招聘Python工程师标准>>>
git提交代码时,出现这个错误“error: The requested URL returned error: 403 Forbidden while accessing https”
解决方法:
编辑.git目录下的config文件即可。
vim .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]url = https://enzhouguo@github.com/enzhouguo/video_web.git
//修改前 url = https://github.com/enzhouguo/video_web.git//修改后 url = https://enzhouguo@github.com/enzhouguo/video_web.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master