git 오류를 제출할 수 없습니다. - error: The requested URL returned error: 403 Forbidden while accessinghttps://github.c

1192 단어 Git
git clone이 내려올 때 실행하기
git push origin master

때 오류를 보고합니다.
error: The requested URL returned error: 403 Forbidden while accessing https://github.com

복구 방법
vi .git/config
[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = https://github.com/fancyecommerce/yii2-fec.git

바꾸다
[remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = https://[email protected]/fancyecommerce/yii2-fec.git

계속 실행
git push origin master 

오류 보고:
Gtk-WARNING **: cannot open display:
다음을 수행합니다.
unset SSH_ASKPASS

git push origin master 계속 실행하기
[root@services fec]# git push origin master
Password: 
Counting objects: 503, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (485/485), done.
Writing objects: 100% (498/498), 1.67 MiB | 255 KiB/s, done.
Total 498 (delta 130), reused 2 (delta 0)
To https://[email protected]/fancyecommerce/yii2-fec.git
   936020b..07260aa  master -> master

성공

좋은 웹페이지 즐겨찾기