1. 问题原因
本地git配置的用户名、密码与GitLab上注册的用户名、密码不一致
2.解决方法
(1)查看本地Git用户和邮箱名称,如果信息不对,重新设置
git config --global user.name "username"
git config --global user.email "email"
(2) 重新生成公钥
ssh-keygen -t rsa -C "your_email@youremail.com"
(3) 如果上述还是不行,再重新设置本地Git密码
git config --system --unset credential.helper
注:如报错 git error: could not lock config Permission denie,将对应文件夹权限放开即可