解决git push 中remote: Permission to xxxxx.git denied to xxx. fatal: unable to access xxxx 403(转)
生活随笔
收集整理的這篇文章主要介紹了
解决git push 中remote: Permission to xxxxx.git denied to xxx. fatal: unable to access xxxx 403(转)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題復現
你在切換多個github賬號的時候,很容易出現下面的這種問題
問題描述
今天我在使用git push 將修改的項目push到github中,出現:
remote: Permission to xxxxx.git denied to xxx. fatal: unable to access 'https://github.com/ xxxxx.git/': > The requested URL returned error: 403解決方案
第一步,將github中的項目clone下來
第二步,修改.git/cofig中的url
cd 到項目中,編輯 .git/cofig中的url
vim .git/config
將
[remote "origin"]
url =?https://github.com/git的用戶名/項目名稱
的url改為
url =?https://appleyuchi@github.com/appleyuchi/TPU_GPU_Code.git
?
第三步,git push -u origin master
?
這里附帶記錄一個小命令:
git config --list
總結
以上是生活随笔為你收集整理的解决git push 中remote: Permission to xxxxx.git denied to xxx. fatal: unable to access xxxx 403(转)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: colab中安装lightgbm的GPU
- 下一篇: trust cv的含义