git - - - ERROR: Permission to zichenlbl/vuepress.git denied to zicz. fatal: Could not read from rem

错误

没权限,因为本地的ssh key验证的账号是zicz用户名,用户zicz没有权限同步到用户zichenlbl的仓库。

ERROR: Permission to zichenlbl/vuepress.git denied to zicz.
fatal: Could not read from remote repository.

解决方法

仓库地址改成下面http地址,使用http仓库地址同步。

错误原因是:
git push 同步代码时,原本使用shh key 同步方式(已注释),判断出此电脑是用户zicz的。所以没有权限。
git - - - ERROR: Permission to zichenlbl/vuepress.git denied to zicz. fatal: Could not read from rem_第1张图片

扩展

查看此计算机与[email protected]的身份验证是否正确。身份是谁?是zicz。
git - - - ERROR: Permission to zichenlbl/vuepress.git denied to zicz. fatal: Could not read from rem_第2张图片

你可能感兴趣的:(Git,错误解决方法,git)