1. 程式人生 > >[email protected]: Permission denied (publickey).////remote: Permission to xxx/test.git denied to xxx.等權限問題

[email protected]: Permission denied (publickey).////remote: Permission to xxx/test.git denied to xxx.等權限問題

xxx 本地 rmi 解決 賬號 color 面板 remote 配置

Error msg

[email protected]: Permission denied (publickey)

或者:
remote: Permission to xxx/test.git denied to xxx.
等由於權限切換問題

錯誤原因:

  賬號切換, 原賬號保存數據未清除

解決:

  1. 清除憑證: 控制面板-->用戶賬戶-->憑證管理器-->管理憑證:

    刪除git相關的憑證

  2. 刪除本地git配置數據:

    cd ~ && rm -rf .git*

  即可重新配置git信息

[email protected]: Permission denied (publickey).////remote: Permission to xxx/test.git denied to xxx.等權限問題