简体   繁体   English

在 gitlab 上推送文件

[英]Push files on gitlab

I want to Push a file to GitLab and need SSH link Is it in clone button?我想将文件推送到 GitLab 并需要 SSH 链接 它在克隆按钮中吗? Can we this SSH for pull and clone?我们可以用这个 SSH 进行拉取和克隆吗? Is it same?是一样的吗?

在此处输入图像描述

Yes, you can find the SSH URL with the Clone button.是的,您可以使用克隆按钮找到 SSH URL。

That will clone the full repository though, not just a file.不过,这将克隆完整的存储库,而不仅仅是一个文件。

And it implies you already registered a public SSH key to your GitLab profile , for authentication.这意味着您已经在您的 GitLab 配置文件中注册了一个公共 SSH 密钥,用于身份验证。

Yes.是的。

You can use an SSH key for pushing, pulling, cloning and every other git related command.您可以使用 SSH 密钥进行推送、拉取、克隆和所有其他 git 相关命令。

Think of it as your authentication to Gitlab Git servers.将其视为您对 Gitlab Git 服务器的身份验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM