一、問題
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
二、最佳解決方案
- 修改本地倉庫下的
vim .git/config文件 - 修改內容
[remote “origin”]
原:url = https://github.com/test_name/test_album.git
修改爲:url = https://[email protected]/test_name/test_album.git
補充:
還可以生成密鑰後來配置github 的deploykey解決該問題