【git push 報錯】fatal: unable to access……

一、問題

remote: Permission to testGit/test_album.git denied to test_name.
fatal: unable to access ‘https://github.com/test_name/test_album.git/’: The requested URL returned error: 403

二、最佳解決方案

  1. 修改本地倉庫下的
    vim .git/config文件
  2. 修改內容
    [remote “origin”]
    原:url = https://github.com/test_name/test_album.git
    修改爲:url = https://[email protected]/test_name/test_album.git

補充:

還可以生成密鑰後來配置github 的deploykey解決該問題


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章