GitLab push远端,出现错误提示:Push failed: Failed with error: fatal: Could not read from remote repository.
原因: 1,账号无push的权限。
2,请添加一个正确的sshKey 添加方法:
ssh-keygen -t rsa -C "账号"
cat ~/.ssh/id_rsa.pub
将ssh保存到 GitLab即可
时间: 2025-01-15 13:39:55
GitLab push远端,出现错误提示:Push failed: Failed with error: fatal: Could not read from remote repository.
原因: 1,账号无push的权限。
2,请添加一个正确的sshKey 添加方法:
ssh-keygen -t rsa -C "账号"
cat ~/.ssh/id_rsa.pub
将ssh保存到 GitLab即可