GIT实验室的Android Studio克隆存储库

发布于 2025-02-07 03:20:13 字数 1166 浏览 1 评论 0原文

现在,我试图在服务器小时内从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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

葮薆情 2025-02-14 03:20:13

我启用“使用凭证助手”。我在gitlab中创建一个访问令牌。

这是一个好主意,但仅对于https url(https://gitlab.com/me/myproject),而不是ssh Ones([email  procearted] :me/myproject

)坚持。

I enable "Use credential helper". I create an access token in gitlab.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文