git pull 报错 you don’t have permission to view it. 解决方案
1.拉取代码报以下错误
root@neimao:/var/www/bschem# git pull remote: The project you were looking for could not be found or you don't have permission to view it. fatal: repository 'http://git.aikon.com:88/webs/bschem.git/' not found
2.查看git源路径
root@neimao:/var/www/bschem# git remote -v origin http://git.aikon.com:88/webs/bschem.git (fetch) origin http://git.aikon.com:88/webs/bschem.git (push)
3.在home目录下,打开.git-credentials
root@neimao:~# cd root@neimao:~# vim .git-credentials http://deploy:deploy123445@git.aikon.com%3a88 http://zhanzhenshan:zzs901211@git.aikon.com%3a88 http://fhl:fhl789456@git.aikon.com%3a88
4.第一个需要是服务器上所有公用的项目的 账号,必须至少拥有reporter 拉取代码权限