git pull时报错remote: The project you were looking for could not be found or you don‘t have permission

这个问题主要是因为在git用户凭证中记住的用户不正确,或者此用户没用权限导致的。

解决方法如下,去用户凭证中删除git相关用户然后重新配置即可:

保存的git账号删除和修改:

1.Mac 在钥匙串中更改保存的git账号  

2.windows 在控制面板-凭据管理器里修改

3.Linux: vi ~/.git-credentials   可以看到被保存的账号密码,删掉或者修改都可以了! 全部删除重新输入即可解决问题

git config --global credential.helper store  #第一次输入之后就不用再输入了

git pull 时重新输入用户名和密码即可

猜你喜欢

转载自blog.csdn.net/qq_42152032/article/details/132882749