GIT实验室的Android Studio克隆存储库
现在,我试图在服务器小时内从GitLab中克隆回购。
Linux Zorinos,Android Studio 2021.2.1.4(如果有帮助的话)
我有一个gitlab帐户。 我很棒的ssh键(ssh -keygen -t rsa) 我将其添加到Gitlab 然后,我尝试通过SSH和URL来克隆它:
Invocation failed Unexpected end of file from server
java.lang.RuntimeException: Invocation failed Unexpected end of file from server
at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:30)
at git4idea.http.GitAskPassApp.main(GitAskPassApp.java:58)
Caused by: java.net.SocketException: Unexpected end of file from server
然后我开始使用Google。 我启用“使用凭证助手”。 我在gitlab中创建一个访问令牌。 再次尝试了URL Methode。相同的错误。 但是SSH Methode给出了一个新的:
[email protected]: Permission denied (publickey).
Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我让我的团队负责人检查了所有权限,但是我拥有我可以拥有的所有权利和权限。以及直接从Gitlab复制的SSH和URL。
我不知道我做错了什么,似乎没有任何帮助。我已经多次完成了这些步骤 - 什么都没有。
欢乐帮助我。
I now have tried to clone a repo from gitlab for serveral hours.
Linux ZorinOS, Android Studio 2021.2.1.4 (If it helps)
I have a gitlab account.
I greatet a ssh key (ssh-keygen -t rsa)
I added it to gitlab
Then I tried to clone it via ssh and url with this result:
Invocation failed Unexpected end of file from server
java.lang.RuntimeException: Invocation failed Unexpected end of file from server
at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:30)
at git4idea.http.GitAskPassApp.main(GitAskPassApp.java:58)
Caused by: java.net.SocketException: Unexpected end of file from server
Then I start to google.
I enable "Use credential helper".
I create an access token in gitlab.
Tried the url methode again. Same error.
But the ssh methode gives a new one:
[email protected]: Permission denied (publickey).
Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I let my teamleader check all my permissions, but I have all rights and permissions I can have. And both the ssh and url where directly copied from gitlab.
I have no idea what I am doing wrong and nothing seems to help. I've done these steps multiple times - nothing.
Pleases help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个好主意,但仅对于https url(
https://gitlab.com/me/myproject
),而不是ssh Ones([email  procearted] :me/myproject
)坚持。
That is a good idea, but only for HTTPS URL (
https://gitlab.com/me/myProject
), not SSH ones ([email protected]:me/myProject
)So try and switch to HTTPS, to see if the project access issue persists.